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 1SELECT id FROM categories WHERE id =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 'AND company_supplier_category.company_category = AND company.status = 1' at line 9SELECT COUNT(company.id) FROM company_supplier_category, company, company_category WHERE company_supplier_category.supplier_category IN (1061) AND company.company_country =87 AND company_category.company_id = company.id AND company_supplier_category.company = company.id AND company_category.company_categories = AND company_supplier_category.company_category = AND company.status = 1 AND company_category.status = 1 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 'AND company_supplier_category.company_category = AND company.status = 1' at line 10SELECT company.co_logo, company.company_sh_name, company.company_name, company.company_country, company.company_address, company.id, company.rank,company.country_part FROM company_supplier_category, company, company_category WHERE company_supplier_category.supplier_category IN (1061) AND company.company_country =87 AND company_category.company_id = company.id AND company_supplier_category.company = company.id AND company_category.company_categories = AND company_supplier_category.company_category = AND company.status = 1 AND company_category.status = 1 LIMIT 0,10 Leather Product Suppliers in Kenya - Business Portals .com