Ошибка в SQL:

SELECT * FROM adverts LEFT JOIN adverts_type at ON adverts.type = at.id WHERE adverts.type = AND price >= 0 AND price <= 0 AND code_mark = AND code_model = AND code NOT IN ("") AND all_photo = 1 ORDER BY price DESC LIMIT 0,12

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND price >= 0 AND price <= 0 AND code_mark = AND code_model = AND code' at line 1