You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 's-park-%' AND ai_status = 'page' LIMIT 1' at line 1
SELECT title2 FROM new_cms WHERE title2 LIKE 'man-with-a-van-queen's-park-%' AND ai_status = 'page' LIMIT 1