Query error with executeQuery, the query itself is flawed, here is the sql:
SELECT title, p.slug, caption, copyright_holder, email, website, country, filename, web_text, region, hires FROM cpg134_pictures p, copyright_t c, country_t co, region_t re WHERE p.pid = AND p.copyright_id = c.copyright_id AND p.country_id = co.country_id AND re.region_id = co.region_id
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 'AND p.copyright_id = c.copyright_id AND p.country_id = co.country_id A' at line 4
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/avertor/public_html/photo_library/generic/generic.database.func.php on line 153
Picture:

Image and copyright details