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