invalid sql: select *,items.id as tid from trimthetree_items as items where (catID= or catID2= ) and active=1 order by ranking asc LIMIT 0, 30