SELECT *
FROM `anta_navigation` AS tb1
LEFT JOIN `anta_nav_details` AS tb2
ON tb1.id=tb2.uid
WHERE tb1.sx <= AND tb1.dx >= AND tb1.sx>1 AND tb2.menu>0
AND tb2.lang_id=1
ORDER BY tb1.sx ASC
Unable to query MySQL! Please contact Administrator
MySQL Error: 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 tb1.dx >= AND tb1.sx>1 AND tb2.menu>0
AND tb2.lang_id=1
ORDER BY tb1.' at line 5