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 `ga_packages_id` IN ('61','62','71','72','80','84','86','104','105','106',' at line 1