SELECT item_id, alt, tgt, IF(b_height>b_width,'height','width') AS wh,
                        s_path, s_src, s_width, s_height,s_size,
                        m_path, m_src, m_width, m_height,m_size,
                        b_path, b_src, b_width, b_height,b_size
                FROM ( SELECT * FROM mod_catalog_images WHERE item_id IN () AND item_type='item' AND (tgt&1)>0 ORDER BY set_def DESC, ssort ) AS mod_catalog_images GROUP BY item_id
DB Error: syntax error