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 id_lng=' at line 1
SELECT T.id_gallery,T.id_lng,T.idf,T.name,T.info,T.password,T.freesize FROM photoz.gallery T WHERE id_gallery= AND id_lng=
Fatal error: Call to a member function fetch_row() on a non-object in W:\.WebRoot\geniuz.cz\photoz\class.Table.php(87) : eval()'d code on line 1