database error: There was a error in executing the following SQL:
select default_background_color, default_foreground_color, default_font_face, default_font_size, default_link_color, default_link_color_hover, default_link_underline, nav_arrow_color from member_custom_styles where custom_id=

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 '' at line 1

User:
Server name: www.artspan.com

Program Name: /artist-region-directory/NA_223_4117/New%20Jersey


Error: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 '' at line 1

Trace:
#0 /mnt/www/source/artspan-legacy/includes/db_abstracts.inc(122): ASDB_util->db_query2('select default_...')
#1 /mnt/www/source/artspan-legacy/includes/class_utility.php(2767): db_query('select default_...')
#2 /mnt/www/source/artspan-legacy/includes/class_utility.php(2494): utilityClass->getCustomStyleAndTemplate(NULL, NULL, false)
#3 /mnt/www/source/artspan-legacy/includes/class_memberConfig.php(2076): utilityClass->getTemplateAndStyle('', '', '130023', false)
#4 /mnt/www/source/artspan-legacy/includes/class_image.php(1209): artspanMemberConfig->getTemplateAndStyle('', '')
#5 /mnt/www/source/artspan-legacy/includes/class_image.php(1501): ArtspanImage->getArtworkPageName(3290810)
#6 /mnt/www/source/artspan-legacy/includes/class_memberDirectories.php(622): ArtspanImage->generateImageURL()
#7 /mnt/www/source/artspan-legacy/includes/class_memberDirectories.php(534): artspanMemberDirectories::__getMemberDataForRegion(Array)
#8 /mnt/www/source/artspan-legacy/artspan_main/region_directory.php(21): artspanMemberDirectories::getMemberDataForRegion(Array)
#9 {main}