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 'LIMIT 1' at line 1
Query that failed: SELECT * FROM pages WHERE language = 'en' AND deleted = 0 AND visibility = 1 AND id = LIMIT 1;