A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND p.id_poi_type=pt.id_poi_type ORDER BY pt.name_type, p.na...' at line 9

SELECT * FROM poi as p, poi_type as pt WHERE p.active=1 AND pt.active=1 AND p.id_customer= AND p.id_poi_type=pt.id_poi_type ORDER BY pt.name_type, p.name_poi

Filename: controllers/Welcome.php

Line Number: 1084