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 'and p.products_status=1 order by p.products_id' at line 4

select count(*) as total from products p, products_description pd, products_to_categories pc where (p.products_id = pd.products_id and p.products_id = pc.products_id) and pc.categories_id = and p.products_status=1 order by p.products_id

[TEP STOP]