SELECT SQL_CALC_FOUND_ROWS game_id FROM slots WHERE game_name=''Jack and the Beanstalk' LIMIT 1

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 'Jack and the Beanstalk' LIMIT 1' at line 1