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-directory-az/T


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(2089): 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(1502): ArtspanImage->getArtworkPageName(3317789)
#6 /mnt/www/source/artspan-legacy/includes/class_memberDirectories.php(148): ArtspanImage->generateImageURL()
#7 /mnt/www/source/artspan-legacy/includes/class_memberDirectories.php(244): artspanMemberDirectories::__getAlphaResults('T')
#8 /mnt/www/source/artspan-legacy/artspan_main/mbr_dir.php(31): artspanMemberDirectories::getAlphaResults('T')
#9 {main}