SQL ERROR FOUND in SELECT f.id AS fid, fi.id AS fiid, fi.img, fi.name FROM files f, files_images fi WHERE f.id = fi.parent AND f.parent = '114' AND fi.id <> (SELECT thumb FROM records_pages WHERE parent = 114) AND f.default_lang = fi.lang ORDER BY fi.sequence ASC, f.id ASC [nativecode=1242 ** Subquery returns more than 1 row]