[BUG] \Phalcon\Mvc\Model\Query\Builder ... #1542
Closed
Labels
Comments
Please try |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi All)
Exception:
Fatal error: Uncaught exception 'Phalcon\Mvc\Model\Exception' with message 'Column 'CURRENT_DATE' doesn't belong to any of the selected models (1), when preparing: SELECT fu., Follower. FROM [User\Model\Follow\User] AS [fu] JOIN [User\Model\User] AS [Follower] ON fu.user_id = Follower.id WHERE ((fu.author_user_id = 11000) AND (fu.user_id <> 11000)) AND (DATE(fu.createdDate) >= SUBDATE(CURRENT_DATE, 1)) ORDER BY fu.favoriteauthor_id DESC LIMIT 100' in /home/zaets28rus/www/uniqhand-sandbox/app/modules/user/models/Follow/UserTable.php on line 184
Phalcon\Mvc\Model\Exception: Column 'CURRENT_DATE' doesn't belong to any of the selected models (1), when preparing: SELECT fu., Follower. FROM [User\Model\Follow\User] AS [fu] JOIN [User\Model\User] AS [Follower] ON fu.user_id = Follower.id WHERE ((fu.author_user_id = 11000) AND (fu.user_id <> 11000)) AND (DATE(fu.createdDate) >= SUBDATE(CURRENT_DATE, 1)) ORDER BY fu.favoriteauthor_id DESC LIMIT 100 in /home/zaets28rus/www/uniqhand-sandbox/app/modules/user/models/Follow/UserTable.php on line 184
When i am using CURDATE() its okey
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: