SELECT id FROM tehno_x_category WHERE ordi< AND level='0' ORDER BY ordi DESC;
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 level='0' ORDER BY ordi DESC' at line 1