SQL SELECT from three tables
SELECT mt.*, ut.name, ct.title
FROM
Map_table mt
INNER JOIN
User_table ut on mt.from_user_id = ut.id
LEFT JOIN
Content_table ct on mt.content_id = ct.id
WHERE
mt.to_user_id = 1
SELECT m.id,m.content_id,m.from_user_id,m.to_user_id,m.timestamp,u.name,c.title
FROM Map_table m
INNER JOIN User_table u ON u.id = m.from_user_id
LEFT OUTER JOIN Content_table c ON c.id = m.content_id
WHERE m.to_user_id = 1