sql_error[0]: select b.id, b.lang_id, b.pfad, b.titel, b.rang, b.stat from bilder b where b.typ=1 and b.ext_id = and b.lang_id=1 order by rang -> 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 'and b.lang_id=1 order by rang' at line 3