JOIN to read first table and get possible relationship in the second table
Based on your updated question:

SELECT group_title, IF(user_id IS NULL, 0, 1)
FROM groups
LEFT JOIN (SELECT user_id, group_id 
          FROM group_members WHERE user_id=1)gMembers USING(group_id)


sqlfiddle