$dbc 正在返回False。查询中有错误:
$dbc
SELECT users.*, profile.* --You do not join with profile anywhere. FROM users INNER JOIN contact_info ON contact_info.user_id = users.user_id WHERE users.user_id=3");
一般来说,raveren已经描述了解决这个问题的方法。