Error performing query: 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 catcom.comid=com.comid AND com.is_active=1 ORDER BY com.website_linked DESC,' at line 1
SELECT com.company, com.website_linked FROM bg_companies com, bg_categories_companies catcom WHERE catcom.catid= and catcom.comid=com.comid AND com.is_active=1 ORDER BY com.website_linked DESC, company ASC