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 '-20,10' at line 1
CHECK THE URL =>
Select ID,CompanyName,Website,YOE,SubCompanyType,CompanyLogo,ContactName,Designation,ContactNumber,AddressLine1,AddressLine2,Town,State,PostalCode,Status,PurchaseLeads,ModUrlCompanyName from if_companydetails where Town='chennai' and Status='Approved' AND CompanyName!='' order by UpdatedDate desc limit -20,10