Gantry 5 provides a custom error page for you to configure with either positions, particles or a combination of both, as well as styling.
1064 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 'LIMIT 0, 10' at line 1