Database Error

Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'agences' in 'where clause'

SQL Query: SELECT ps.id_package,ps.nom_ville, ps.nom_pays, ps.id_duree, ps.nom_duree, ps.country_product_id, ps.country_product_name, ps.prix_double, ps.prix_single, ps.prix_triple, ps.prix_quadriple, ps.prix_quintuple,ps.prix_sextuple, ps.ville_x, ps.ville_y,ps.minprice, min(ps.minprice) as minpx FROM pack_site ps WHERE (ps.prix_double > 0 or ps.prix_quadriple > 0) and ps.id_type_voyage = 20 and ps.country_product_id = agences and ps.id_categorie = 1 GROUP BY ps.country_product_id,ps.id_duree ORDER BY minpx ASC

Notice: If you want to customize this error message, create app/View/Errors/pdo_error.ctp

Stack Trace