You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECTCOUNT(B.*) FROM (SELECTtags.idFROM tags,
(SELECT t.*FROM tags t WHEREt.idIN (0,1,2)) as childTag
WHEREtags.lft<childTag.lftANDtags.rgt>childTag.rgtANDtags.depth=2) as B
So we see that we are using 2 tables in the FROM and after MagicQuery it's removing the comma.
Response from MQ:
SELECTCOUNT( `B`.*)
FROM (SELECT`tags`.`id`FROM`tags` (SELECT`t`.*FROM`tags``t`WHERE`t`.`id`IN ( 0, 1, 2)) `childTag`WHERE ( `tags`.`lft`<`childTag`.`lft`)
AND ( `tags`.`rgt`>`childTag`.`rgt`)
AND ( `tags`.`depth`=2)) `B`
Activity