Time : 06:32:13 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 'last_seen DESC, not_answer ASC LIMIT 0, 15' at line 3 Raw SQL : SELECT *, (111.111 * DEGREES(acos(cos(radians(19.1178548)) * cos(radians(latitude)) * cos(radians(longitude) - radians(72.8631304)) + sin (radians(19.1178548)) * sin(radians(latitude)) ))) AS distance from rt_service_providers where android_device_id IS NOT NULL and status != 3 and id NOT IN (123) and FIND_IN_SET(5, sub_category_id) 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 id DESC last_seen DESC, not_answer ASC LIMIT 0, 15 Time : 05:21:58 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 : UPDATE rt_service_providers SET status='1' WHERE id= Time : 05:21:28 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 : UPDATE rt_service_providers SET status='1' WHERE id= Time : 05:21:27 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 : UPDATE rt_service_providers SET status='1' WHERE id= Time : 05:21:25 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 : UPDATE rt_service_providers SET status='1' WHERE id= Time : 05:21:25 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 : UPDATE rt_service_providers SET status='1' WHERE id= Time : 05:21:14 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 : UPDATE rt_service_providers SET status='1' WHERE id= Time : 05:20: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 'WHERE id=' at line 1 Raw SQL : UPDATE rt_service_providers SET status= WHERE id=