this is the query i used to fetch data(actual table)
SELECT s.*, pa.name, u.uniqueId
FROM (services s
INNER JOIN user u ON (s.int_uid = u.userId))
INNER JOIN photo_album pa ON (s.int_id = pa.sid)
WHERE ( ( ( (s.lat > 8.498946165695486 AND s.lat < 8.51380130326614)
AND s.lng > 76.95714611355584)
AND s.lng < 77.01830047909539)
AND s.int_deleted = '0')
ORDER BY s.int_id DESC
LIMIT 25
and the output is

i need code for int_id 147 one time and 2 images,
int_id 140 one time and 3 images,
int_id 139 one time and 2 images.