SELECT path, type FROM ff_lnk_collection_img WHERE id_collection = AND type = 1 ORDER BY ord ASC
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 type = 1 ORDER BY ord ASC' at line 1