The first picture
Array ( [0] => SELECT COUNT(*) FROM photo WHERE aid = '1' OR aid = '8' and approved = '1' [1] => SELECT * FROM photo WHERE aid = '1' OR aid = '8' and approved = '1' ORDER BY ctime DESC LIMIT 6 OFFSET 108 )