You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'all OR showCatIDs like '%|multiselect-all|%' OR catID = 128 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 = 128 OR showCatIDs like '%|128|%' OR catID = 127 OR showCatIDs like '%|127|%' OR catID = 129 OR showCatIDs like '%|129|%' OR catID = 119 OR showCatIDs like '%|119|%' OR catID = 120 OR showCatIDs like '%|120|%' OR catID = 124 OR showCatIDs like '%|124|%' OR catID = 126 OR showCatIDs like '%|126|%' OR catID = 130 OR showCatIDs like '%|130|%' OR catID = 118 OR showCatIDs like '%|118|%' OR catID = 122 OR showCatIDs like '%|122|%' OR catID = 121 OR showCatIDs like '%|121|%' OR catID = 125 OR showCatIDs like '%|125|%' OR catID = 123 OR showCatIDs like '%|123|%' OR ID=0 ) order by urun.seq desc limit 0,999