select * from ibgs_ctbrands where ctbrand_id in(0,475,476,478,479,481,482,483,484,485,486,487,490,492,493,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