Fatal 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 'ORDER BY c.name' at line 5: SELECT DISTINCT c.name FROM cities c WHERE c.state_id= ORDER BY c.name in /home/locatea/public_html/include/common/db.php on line 237