Time : 21:00:03 SQLSTATE[42000]: Syntax error or access violation: 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 Raw SQL : SELECT * FROM rt_service_providers WHERE status='1' AND city LIKE 'mumbai' ORDER BY last_seen DESC LIMIT Time : 15:00:03 SQLSTATE[42000]: Syntax error or access violation: 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 Raw SQL : SELECT * FROM rt_service_providers WHERE status='1' AND city LIKE 'mumbai' ORDER BY last_seen DESC LIMIT Time : 14:00:03 SQLSTATE[42000]: Syntax error or access violation: 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 Raw SQL : SELECT * FROM rt_service_providers WHERE status='1' AND city LIKE 'mumbai' ORDER BY last_seen DESC LIMIT Time : 13:00:03 SQLSTATE[42000]: Syntax error or access violation: 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 Raw SQL : SELECT * FROM rt_service_providers WHERE status='1' AND city LIKE 'mumbai' ORDER BY last_seen DESC LIMIT Time : 07:36:02 SQLSTATE[42000]: Syntax error or access violation: 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 Raw SQL : select * from rt_service_providers where id IN ()