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 '' at line 1
SELECT
*, arrets.id as bonneID
FROM
arrets
WHERE
Datecache like '1996' AND
(
Typecache like '' OR
Typecache like ''
) AND
Moiscache like '0'
ORDER BY
Datecache, Numpagedebcache
LIMIT
0,


SELECT *, arrets.id as bonneID from arrets where Datecache like '1996' AND (Typecache like '' OR Typecache like '') AND Moiscache like '0' order by Datecache, Numpagedebcache limit 0,;