Fatal error: Uncaught mysqli_sql_exception: 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 '' at line 1 in /home/redraggalleryco/public_html/includes/functions.php:434
Stack trace:
#0 /home/redraggalleryco/public_html/includes/functions.php(434): mysqli_query(Object(mysqli), 'SELECT * FROM t...')
#1 /home/redraggalleryco/public_html/paintings1.php(31): artworkList(0, 'sale', 'portrait', 'all', NULL, 'all', 'all', 1, 'all', NULL)
#2 /home/redraggalleryco/public_html/default.php(675): include('/home/redraggal...')
#3 {main}
thrown in /home/redraggalleryco/public_html/includes/functions.php on line 434