select f.*, m.real_name, m.url from smf_fotos f, smf_members m where m.id_member=f.id_member and f.estado=3 and (month(f.fecha)=12 and year(f.fecha)=2018) order by f.fecha desc limit 5703, 36