Can not run sql query [code: 003]
SQL:
SELECT
drugs.id_drug,
drugs.name,
drugs.small_descr,
drugs.cache_price,
drugs.cache_max_cnt_in_min_dosage,
categories.name as cat_name,
cat_relations.visible
FROM
drugs,
categories,
cat_relations
WHERE
drugs.id_drug = cat_relations.id_drug
AND
categories.name = 'Heart Disease'
AND
categories.id_category = cat_relations.id_category
AND
cat_relations.visible = 1
AND
drugs.name <> 'Zestril'
ORDER BY RAND()
LIMIT 6;