in reply to SQL causing 500 error (was: What's Wrong With This?)

Try running from shell if you can. Try query in mysql if you can. Try adding:
use CGI:Carp 'fatalsToBrowser';
to beginning of script while debugging.

Also, add:

use CGI;
and use the damn CGI module - if you can :)

.02

cLive ;-)

--
seek(JOB,$$LA,0);