The following breaks when it hits the Execute() line:
PHP Code:
$prodId_query "SELECT p.products_id FROM " TABLE_PRODUCTS " WHERE p.products_image LIKE '" $prodImgName "'";

$thisProdId $db->Execute($prodId_query); 
The error message is:
"Unknown column 'p.products_id' in 'field list'"

It's late, and I'm sure its probably simple, but what am i missing????