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_4077/Alabama


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(2766): 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(2089): utilityClass->getTemplateAndStyle('', '', '85522', false)
#4 /mnt/www/source/artspan-legacy/includes/class_image.php(1209): artspanMemberConfig->getTemplateAndStyle('', '')
#5 /mnt/www/source/artspan-legacy/includes/class_artwork.php(330): ArtspanImage->getArtworkPageName(2022282)
#6 /mnt/www/source/artspan-legacy/includes/class_image.php(1457): artspanArtwork->generateLink(NULL, true, true)
#7 /mnt/www/source/artspan-legacy/includes/class_memberDirectories.php(679): ArtspanImage->generateImageURL('2022282', NULL, true, true)
#8 /mnt/www/source/artspan-legacy/includes/class_memberDirectories.php(559): artspanMemberDirectories::__getMemberDataForRegion(Array)
#9 /mnt/www/source/artspan-legacy/artspan_main/region_directory.php(25): artspanMemberDirectories::getMemberDataForRegion(Array)
#10 {main}