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 'all OR showCatIDs like '%|multiselect-all|%' OR catID = 53 OR showCatIDs like...' at line 1select * from urun where urun.bakiyeOdeme=0 AND urun.active = 1 AND urun.active = 1 AND (catID = multiselect-all OR showCatIDs like '%|multiselect-all|%' OR catID = 53 OR showCatIDs like '%|53|%' OR catID = 54 OR showCatIDs like '%|54|%' OR catID = 79 OR showCatIDs like '%|79|%' OR catID = 80 OR showCatIDs like '%|80|%' OR catID = 63 OR showCatIDs like '%|63|%' OR catID = 75 OR showCatIDs like '%|75|%' OR catID = 83 OR showCatIDs like '%|83|%' OR catID = 69 OR showCatIDs like '%|69|%' OR catID = 51 OR showCatIDs like '%|51|%' OR catID = 72 OR showCatIDs like '%|72|%' OR catID = 52 OR showCatIDs like '%|52|%' OR catID = 71 OR showCatIDs like '%|71|%' OR catID = 82 OR showCatIDs like '%|82|%' OR catID = 60 OR showCatIDs like '%|60|%' OR catID = 58 OR showCatIDs like '%|58|%' OR catID = 57 OR showCatIDs like '%|57|%' OR catID = 55 OR showCatIDs like '%|55|%' OR catID = 65 OR showCatIDs like '%|65|%' OR catID = 70 OR showCatIDs like '%|70|%' OR catID = 68 OR showCatIDs like '%|68|%' OR catID = 66 OR showCatIDs like '%|66|%' OR catID = 73 OR showCatIDs like '%|73|%' OR catID = 56 OR showCatIDs like '%|56|%' OR catID = 84 OR showCatIDs like '%|84|%' OR catID = 74 OR showCatIDs like '%|74|%' OR catID = 81 OR showCatIDs like '%|81|%' OR catID = 78 OR showCatIDs like '%|78|%' OR catID = 77 OR showCatIDs like '%|77|%' OR ID=0 ) order by urun.seq desc limit 0,999