Database Error

Error: SQLSTATE[42000]: Syntax error or access violation: 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 'omra GROUP BY ps.id_package ORDER BY ps.id_package ASC' at line 13

SQL Query: SELECT ps.id_package,ps.titre_package,ps.id_ville,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.id_categorie, ps.nom_categorie, ps.ville_x, ps.ville_y, ps.package_description, ps.package_programme, ps.id_pays,ps.nom_pays, ps.minprice, min(ps.minprice) as minpx, ps.asavoir FROM pack_sans_fs_site ps WHERE ps.prix_double > 0 and ps.id_type_voyage = 3 and ps.id_package = 4.omra GROUP BY ps.id_package ORDER BY ps.id_package ASC

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

Stack Trace