Invalid query: SELECT id, clevel FROM `euro_categories` WHERE arch = '0' and cleft> and cright< and (clevel - ) <= 1 order by nameYou 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 cright< and (clevel - ) <= 1 order by' at line 2 @"SELECT id, clevel FROM `euro_categories` WHERE arch = '0' and cleft> and cright< and (clevel - ) <= 1 order by name" -