This is what I got when I added those around the field for database name (Ex: "'pimprig_com_-_gallery'"):
Database error in vBulletin 3.0.6:
Invalid SQL: SELECT
images.id AS imageid,images.cat,c.catname AS cattitle,'' AS extention,images.title,
images.bigimage AS filename,images.medsize,images.width owidth, images.height oheight,images.medwidth width,images.medheight height
FROM 'pimprig_com_-_gallery'.photos AS images
INNER JOIN 'pimprig_com_-_gallery'.categories AS c on images.cat=c.id
WHERE images.userid=1 and images.approved=1 ORDER BY images.date DESC LIMIT 0 ,13
mysql error: 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 ''pimprig_com_-_gallery'.photos AS images
INNER JOIN 'p
mysql error number: 1064
Date: Wednesday 25th of May 2005 05:40:38 PM
Script:
http://forums.pimprig.com/geek-gallery-popup.php
Referer:
Username: GlitterKill
IP Address: 68.53.59.67