ExceptionSQL rencontrée : erreur SQL lors d'une requête de type SELECT. (code 201)
Requète = SELECT SQL_CALC_FOUND_ROWS p.*, (SELECT COUNT(p2.id) FROM `product` p2 WHERE p2.id_parent=p.id) AS nb_enfants FROM `product` p WHERE 1 AND p.`id_parent` = AND p.`active` = 1 ORDER BY p.`position`,p.`reference`

Erreur retournée : 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.`active` = 1 ORDER BY p.`position`,p.`reference`' at line 1


Localisation de l'erreur :
#0 /home/starbaitscomw3kh/www/classes/search.php(157): SQL->query('SELECT SQL_CALC...')
#1 /home/starbaitscomw3kh/www/classes/product.php(42): Search::find(Array)
#2 /home/starbaitscomw3kh/www/classes/product.php(101): Product::getCollection(Array)
#3 /home/starbaitscomw3kh/www/controllers/front/productController.php(26): Product::getItems(Array)
#4 /home/starbaitscomw3kh/www/classes/dispatcher.php(26): productController::displayContent()
#5 /home/starbaitscomw3kh/www/index.php(5): Dispatcher::dispatch()
#6 {main}