1064 - You have an error in your SQL syntax near ') order by az.auto_count desc limit 10' at line 3

select az.products_id, az.products_name from auto_zestawienia az left outer join auto_zestawienia_off azo on (az.products_id=azo.products_id and azo.auto_type='BEST' and az.auto_type='BEST') where azo.id is null and az.categories_id in () order by az.auto_count desc limit 10

[TEP STOP]