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 '4,7,8)or car_make in (SELECT id from make where doors='2') and car_type NOT IN (' at line 1