Tietokantavirhe

Diagnoosi:
Virheellinen kysely.

Serveri virhe: (1064) 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 cs_product_special_code IS NULL LIMIT 1' at line 1

Viimeisin SQL kysely:

SELECT * FROM clover_shop_fi_products WHERE cs_product_id='321' and (cs_product_price_1 IS NOT NULL or cs_product_special_price_1 IS NOT NULL) and cs_product_visible IS NOT and cs_product_special_code IS NULL LIMIT 1