I'm puling out photos depending on category entered with following code
Code: Select all
SELECT DISTINCT ON(challid) photoid, filename, challid, rating FROM excel_gallery WHERE active > 0 $adultsql AND category = '$searchcat'Can you help please?
Cheers