Time : 21:00:01 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:01 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:01 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:01 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 : 05:53:31 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 '?user_id=93960 OR receiver_id = 93960?user_id=93960 ORDER BY Id DESC' at line 1 Raw SQL : SELECT * FROM rt_chat WHERE sender_id = 93960?user_id=93960 OR receiver_id = 93960?user_id=93960 ORDER BY Id DESC