SELECT 1 FROM cdtts_blogs b WHERE b.owner = 'user' AND (u.group_id = '11')
Unknown column 'u.group_id' in 'where clause'