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 ek.megjelenik = 1 AND l.jovahagy = 1 AND (l.lejar > 1714438452 OR l.lejar=1)' at line 1