SELECT a.`ref`, a.`type` , a.`identifiant` , a.`auteur`, a.`titre`, a.`soustitre`, a.`photo`, a.`photo_home` as `picture_home`, a.`resume`, a.`article`, a.`date`, u.`firstname`, u.`url_googleplus`, u.`username_twitter`, aa.`values` as `group_id`, g.`url` as `group_url`, g.`nom` as `group_name`, g.`baseline` as `group_baseline`, g.`logo` as `group_logo`, g.`pictogramme`, p.`publicite_code`, p2.`publicite_code` as `publicite_category` FROM `article` a LEFT OUTER JOIN `user` u ON u.`ref`=a.auteur LEFT OUTER JOIN `article_attributs` aa ON aa.`article_id`=a.`ref` AND `name`='group' LEFT OUTER JOIN `groupe` g ON g.`url`=aa.`values` LEFT OUTER JOIN `publicite` p ON p.`group_id`=g.`url` AND p.`country`=g.`pays` AND p.`website`='horairescommerces' LEFT OUTER JOIN `publicite` p2 ON p2.`item_id`=g.`categorie` AND p2.`type`='category' AND p2.`country`=g.`pays` AND p2.`website`='horairescommerces' WHERE a.`type`='article' AND `identifiant`=:field1 AND a.`date` LIKE :field2 LIMIT 0,1

    [field1] => le-drive-la-nouvelle-arme-des-distributeurs
    [field2] => 2014-10-20%
PDO error: 42S22, 42S22, 1054, Unknown column 'a.ref' in 'field list'