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 pro.id = lpm.id_produit AND pro.libel < '' ORDER BY pro.libel DESC LIMIT ...' at line 1