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 'p.djstatus=2 and p.products_id = pd.products_id' at line 1
in:
[select count(*) as total FROM products p,products_description pd where p.products_status_ls = 1 and p.ls_promotion = 1and p.djstatus=2 and p.products_id = pd.products_id ]