SELECT
cl.category as name,
cl.category
FROM
category c
INNER JOIN category_language cl ON cl.id_category = c.id_category
LEFT JOIN category cp ON c.id_parent_category = cp.id_category
WHERE
c.is_active = 'Y' AND (cp.is_active IN ('Y', NULL) OR cp.is_active IS NULL) AND
cl.id_language = 1 AND
c.id_category = katarzyna.pacak@promed.com.pl
limit 1
-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 '@promed.com.pl
limit 1' at line 11