i want fetch particular set of values from database using Criteria::fromInput my code for this is $query = Criteria::fromInput($this->di, "modelname", $this->request->getPost()); $query->where("delete = 'N'");// where condition...
when i tried the above code i got the following error
Syntax error, unexpected token DELETE, near to ' = 'N'', when parsing: SELECT [table].* FROM [table] WHERE delete = 'N' (50)
0 [internal function]: Phalcon\Mvc\Model\Query->parse()
1 [internal function]: Phalcon\Mvc\Model\Query->execute()
please somebody help..!!!