1064 :: 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 code IN ("ex", "in") AND size = 1 AND image.ship_id = ship.ship_id ORDER BY ' at line 1