Looks like a PHP error to me, not MySQL. Those error codes are normally by the PHP interpreter finding something it doesn't like in your code.
You also appear to have not closed off the <a> tag?
And there appears to be an extra " after your 'thumb/' part of the <img> tag.
I would re-write this section;
<? while($display_info = mysql_fetch_array($runSQL)) { ?>
<a href="sfd/pimages/<? echo $display_info['vimage']; ?>" rel="lightbox[g]"><img src="sfd/pimages/thumb/"<? echo $display_info['vimage']; ?>">
<br>
<? } ?>
As follows, see if that helps.
<?
while ( $display_info = mysql_fetch_array($runSQL) ) {
print "<a href=\"sfd/pimages/{$display_info['vimage']}\" rel=\"lightbox[g]\">";
print "<img src=\"sfd/pimages/thumb/{$display_info['vimage']}\">";
print "</a><br>\n";
}
?>