Time : 12:42:34 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 'requestid (1)' at line 1 Raw SQL : delete from p_requests where id requestid (1) Time : 11:48:38 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 'firmname,is_u_activated,lastmodifieddate from p_customers where p_customers.cus' at line 1 Raw SQL : select customerid,fullname,contactno,emailid,status,,firmname,is_u_activated,lastmodifieddate from p_customers where p_customers.customerid>0 and isapp_user=1 order by fullname asc limit 0,20