Query SQL Error. Please Consult Adminstration

select c.name as category_name, p.* from category c, products p where c.category_id = p.category_id and p.category_id ='17' and p.category_model_id ='7' order by sort_order ASC LIMIT -12, 12