i had this error when i used this query
SELECT id,title,files,price,auction_start,
(SELECT * FROM `phi_files` where id in(d.files) order by id desc limit 1)
FROM phi_ads d Where cat=1 GROUP BY id DESC Limit 6
I have two table phi_ads table have ads , and phi_files have images files , i try to take one file for each ad
any help