db problem: 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 5
SQL = SELECT a_img_id,a_img_width,a_img_height FROM artists a, a_images i, artists_to_a_images ai WHERE a.artist_id = ai.FK_artist_id AND i.a_img_id = ai.FK_a_img_id AND a.artist_id =
PHP_SELF = /artist_index.php