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