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 ''Landhotel \Alte Fliegerschule\' order by preis asc limit 819,4Query SELECT * FROM kurzreisen where id_kmw!='11256' and hotelname!='Landhotel \Alte Fliegerschule\' order by preis asc limit 819,4 ist ungültiges SQL.