SELECT * FROM video WHERE active=1 AND (id_category IN(31) OR groupcat LIKE '%:31:%') ORDER BY thu_tu DESC, id_video DESC