I am making a query using NOT BETWEEN using Phalcon Query Language (PHQL), but it is not working the application hangs. Someone could give me an idea of how I could do it. Thank you very much. There is my query.
$sql = "SELECT c.* FROM table as c WHERE c.activated NOT BETWEEN :f1: and :f2: ";
$parameters['f1'] = '2017-10-01'; $parameters['f2'] = '2017-10-05'; $result= $this->modelsManager->executeQuery($sql, $parameters);
every time the query is run this leaves:
Warning: session_destroy(): Trying to destroy uninitialized session in C:\xampp\htdocs\myapp\app\plugins\SecurityPlugin.php on line 222