При выполнении произошла следующая ошибка:

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 gr_level=2 ORDER BY gr_order' at line 1
Ваш запрос был: SELECT * FROM moebel_groups WHERE gr_parent= AND gr_level=2 ORDER BY gr_order