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