SQL error.
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 brand_sort, brand' at line 1
SELECT id,brand,url,brand_sort FROM ab_brands WHERE id IN () ORDER BY brand_sort, brand