SELECT c.id AS id,d.id AS MsgId, d.MsgType AS MsgType ,d.FromUserName AS FromUserName,d.ToUserName AS ToUserName,c.Reply AS Reply ,c.ReplyMsgId AS ReplyMsgId FROM Message c LEFT JOIN Textmessage d ON d.id=c.MsgId WHERE c.id = $id LIMIT 1
above is my phql ,but debug.log display the SQL:[INFO] SELECT c
.id
AS id
, d
.id
AS MsgId
, d
.MsgType
AS MsgType
, d
.FromUserName
AS FromUserName
, d
.ToUserName
AS ToUserName
, c
.Reply
AS Reply
, c
.ReplyMsgId
AS ReplyMsgId
FROM message
AS c
LEFT JOIN textmessage
AS d
ON d
.id
= c
.MsgId
WHERE id
= 2 LIMIT 1
notice: where id ,that need c.id not id, is it bug ?