select * from ibgs_ctbrands where ctbrand_id in(0,475,476,478,479,480,481,483,484,489,490,496)and ctbrand_id not in () order by ctbrand_title asc
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 ') order by ctbrand_title asc' at line 1