http://www.whimit.com/forum_read.php?f=17
Invalid query: db_query - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'and g.id=gb.id order by g.id' at line 1
А больше хрен че добьешся... Все фильтрует че только можно даже group by или внатуре фиг поймешь..