MySQL query failed (SELECT L.*, C1.category_name as category_name1, C2.category_name as category_name2, C3.category_name as category_name3 FROM locations L LEFT JOIN categories C1 ON L.category_id = C1.category_id LEFT JOIN categories C2 ON L.category_id2 = C2.category_id LEFT JOIN categories C3 ON L.category_id3 = C3.category_id WHERE L.location_id=)
1064: 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 '' at line 1