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 a.images != '' and a.width >= 1 ORDER BY date_simple desc LIMIT 0,7' at line 1 => select a.titre, a.images, f.nom as nom_flux, f.titre as titre_flux, a.date_simple, a.id, c.nom as cat_name from category c, actu a, url_flux f where a.id_category = c.id and f.id = a.id_flux and a.id_category in () and a.images != '' and a.width >= 1 ORDER BY date_simple desc LIMIT 0,7