Error: 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 w.status='publish' AND w.date < NOW()' at line 4
SELECT * FROM mo_art w
LEFT JOIN mo_art_has_category wc ON w.id_art = wc.id_art
LEFT JOIN mo_category c ON wc.id_cat = c.id_cat
WHERE w.id_art= AND w.status='publish' AND w.date < NOW()