2019独角兽企业重金招聘Python工程师标准>>>
SELECT u.*,count(u.id) AS sum FROM user AS uLEFT JOIN post AS pON p.user_id = u.id RIGHT JOIN user_has_group as upON up.user_id = u.id RIGHT JOIN user_has_email as ueON ue.user_id = u.idWHERE u.username != ''AND up.group_id = {$args['groupid']}AND ue.email = '{$args['useremail']}'GROUP BY u.id ORDER BY u.id desc