Query Error: select count(*) as total from traits where 1=1 and specialization_id in()