Error in executing 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 parent=0 order by sort,name' at line 1 - 1064.

select * from submenu_rows where sub_id= and parent=0 order by sort,name