If empty the keywords input, everything is okay. If send keywords, error:
lithium\data\model\QueryException (code 1064)
SELECT * FROM `posts` AS `Post` LEFT JOIN `posts_attachments` AS `PostsAttachment` ON `Post`.`id` = `PostsAttachment`.`post_id` WHERE `keywords` like '%hello%' AND Post.id IN () ORDER BY Post.id DESC;: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY Post.id DESC' at line 1
Not need this: AND Post.id IN ()
... but why here?
Hey,
I think my Lithium version: v0.10.0
My problem:
If empty the keywords input, everything is okay. If send keywords, error:
Not need this: AND Post.id IN () ... but why here?
Controller:
View:
What is the problem?