************ Query failed ***********

DB ERROR..... N1064: 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 vendor= AND id<> ORDER BY spec DESC, ksort DESC LIMIT 3' at line 1

SELECT * FROM mosteh_model WHERE (ym_available > 0 OR mca > 0) AND price>0 AND category= AND vendor= AND id<> ORDER BY spec DESC, ksort DESC LIMIT 3