Notice: Trying to get property of non-object in C:\inetpub\wwwroot\wolf\plugins\flexual\FlexualController.php on line 556

Wolf CMS - Uncaught RedBean_Exception_SQL

Description

SQLSTATE[42000]: Syntax error or access violation: 1064 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 'AND (STR_TO_DATE(`date`,'%Y-%m-%d %h:%i:%s %p') OR `expiration_date` = '0000-00-' at line 1

Location

Exception thrown on line 105 in C:\inetpub\wwwroot\wolf\plugins\flexual\rb.php

Stack trace

require('C:\inetpub\wwwroot\wolf\app\main.php') on line 187 in C:\inetpub\wwwroot\index.phpmain() on line 169 in C:\inetpub\wwwroot\wolf\app\main.php
Dispatcher→dispatch('/divisions/communications/grants/grant_categories/educational-pr...') on line 127 in C:\inetpub\wwwroot\wolf\app\main.php
Dispatcher→executeAction('plugin', 'flexual', array[4]) on line 237 in C:\inetpub\wwwroot\wolf\Framework.php
PluginController→execute('flexual', array[4]) on line 323 in C:\inetpub\wwwroot\wolf\Framework.phpcall_user_func_array(array[2], array[3]) on line 179 in C:\inetpub\wwwroot\wolf\app\controllers\PluginController.php
FlexualController→front_related_index('educational-programs', 'grants', 'grant_categories') on line unknown in unknown
RedBean_Facade→getAll('SELECT x.* FROM `grants` x inner join `grant_categories` y on y....') on line 564 in C:\inetpub\wwwroot\wolf\plugins\flexual\FlexualController.php
RedBean_Facade→query('get', 'SELECT x.* FROM `grants` x inner join `grant_categories` y on y....', array[0]) on line 2195 in C:\inetpub\wwwroot\wolf\plugins\flexual\rb.php
RedBean_Adapter_DBAdapter→get('SELECT x.* FROM `grants` x inner join `grant_categories` y on y....', array[0]) on line 2209 in C:\inetpub\wwwroot\wolf\plugins\flexual\rb.php
RedBean_Driver_PDO→GetAll('SELECT x.* FROM `grants` x inner join `grant_categories` y on y....', array[0]) on line 432 in C:\inetpub\wwwroot\wolf\plugins\flexual\rb.php
RedBean_Driver_PDO→runQuery('SELECT x.* FROM `grants` x inner join `grant_categories` y on y....', array[0]) on line 111 in C:\inetpub\wwwroot\wolf\plugins\flexual\rb.php