Invalid query: select distinct id
from euro_goods
where !hide and
((cat_id in (SELECT id FROM `euro_categories` WHERE cleft>= and cright<= and !arch)) or cat_id = )
order by ord descYou 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 cright<= and !arch)) or cat_id = )
order by ord de' at line 4 @"select distinct id
from euro_goods
where !hide and
((cat_id in (SELECT id FROM `euro_categories` WHERE cleft>= and cright<= and !arch)) or cat_id = )
order by ord desc" -