My SQL Errors Debug..

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and N_YN_On = 1' at line 1
Query Result : select * from artware_product where N_YN = 1 and N_Class = and N_YN_On = 1