Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, string given in /home/camborne-show/public_html/gallery.php on line 15

Fatal error: Uncaught mysqli_sql_exception: 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 'AND gallery.show_item = 'yes'' at line 1 in /home/camborne-show/public_html/gallery.php:46 Stack trace: #0 /home/camborne-show/public_html/gallery.php(46): mysqli_query(Object(mysqli), 'SELECT DISTINCT...') #1 {main} thrown in /home/camborne-show/public_html/gallery.php on line 46