Time : 21:00: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 status='1' AND city LIKE 'mumbai' ORDER BY last_seen DESC LIMIT Time : 10:34:19 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 'ORDER BY id DESC' at line 1 Raw SQL : SELECT rt_booking_on_the_go.*, rt_customers.customer_name, rt_customers.phone_number FROM rt_booking_on_the_go JOIN rt_customers ON (rt_customers.id = rt_booking_on_the_go.user_id) WHERE rt_booking_on_the_go.provider_id = '62894?page=1' AND type='normal' AND service_type = '1' ORDER BY id LIMIT 0, 5 ORDER BY id DESC 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: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 status='1' AND city LIKE 'mumbai' ORDER BY last_seen DESC LIMIT Time : 13:00: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 status='1' AND city LIKE 'mumbai' ORDER BY last_seen DESC LIMIT Time : 04:09:57 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 'id DESC, last_seen DESC, not_answer ASC LIMIT 0, 8' at line 3 Raw SQL : SELECT *, (111.111 * DEGREES(acos(cos(radians(21.1702401)) * cos(radians(latitude)) * cos(radians(longitude) - radians(72.83106070000001)) + sin (radians(21.1702401)) * sin(radians(latitude)) ))) AS distance from rt_service_providers where android_device_id IS NOT NULL and id NOT IN (123) and FIND_IN_SET(5, sub_category_id) and gender='male' and FIND_IN_SET(2, category_id) and status = 1 and deactivate_account = 0 and latitude <> '' and longitude <> '' and category_id <> '' and sub_category_id <> '' HAVING distance <= 20 ORDER BY distance ASC id DESC, last_seen DESC, not_answer ASC LIMIT 0, 8