[21-04-2018 19:20:24] E_WARNING: mysql_num_rows(): supplied argument is not a valid MySQL result resource in file /home/iteach.com.ua/public_html/sme/classes/system/data/mysql/mysqlconnection.php at line 230
 [21-04-2018 19:20:24] E_WARNING: mysql_num_fields(): supplied argument is not a valid MySQL result resource in file /home/iteach.com.ua/public_html/sme/classes/system/data/mysql/mysqlconnection.php at line 236
 [21-04-2018 19:20:24] E_WARNING: mysql_num_rows(): supplied argument is not a valid MySQL result resource in file /home/iteach.com.ua/public_html/sme/classes/system/data/mysql/mysqlconnection.php at line 230
 [21-04-2018 19:20:24] E_WARNING: mysql_num_fields(): supplied argument is not a valid MySQL result resource in file /home/iteach.com.ua/public_html/sme/classes/system/data/mysql/mysqlconnection.php at line 236
 [21-04-2018 19:20:24] E_WARNING: mysql_num_rows(): supplied argument is not a valid MySQL result resource in file /home/iteach.com.ua/public_html/sme/classes/system/data/mysql/mysqlconnection.php at line 230
 [21-04-2018 19:20:24] E_WARNING: mysql_num_fields(): supplied argument is not a valid MySQL result resource in file /home/iteach.com.ua/public_html/sme/classes/system/data/mysql/mysqlconnection.php at line 236
 [21-04-2018 19:20:24] E_WARNING: mysql_num_rows(): supplied argument is not a valid MySQL result resource in file /home/iteach.com.ua/public_html/sme/classes/system/data/mysql/mysqlconnection.php at line 230
 [21-04-2018 19:20:24] E_WARNING: mysql_num_fields(): supplied argument is not a valid MySQL result resource in file /home/iteach.com.ua/public_html/sme/classes/system/data/mysql/mysqlconnection.php at line 236
 [21-04-2018 19:20:24] E_WARNING: mysql_num_rows(): supplied argument is not a valid MySQL result resource in file /home/iteach.com.ua/public_html/sme/classes/system/data/mysql/mysqlconnection.php at line 230
 [21-04-2018 19:20:24] E_WARNING: mysql_num_fields(): supplied argument is not a valid MySQL result resource in file /home/iteach.com.ua/public_html/sme/classes/system/data/mysql/mysqlconnection.php at line 236
 [21-04-2018 19:20:24] E_WARNING: mysql_num_rows(): supplied argument is not a valid MySQL result resource in file /home/iteach.com.ua/public_html/sme/classes/system/data/mysql/mysqlconnection.php at line 230
 [21-04-2018 19:20:24] E_WARNING: mysql_num_fields(): supplied argument is not a valid MySQL result resource in file /home/iteach.com.ua/public_html/sme/classes/system/data/mysql/mysqlconnection.php at line 236
 [21-04-2018 19:20:24] E_WARNING: mysql_num_rows(): supplied argument is not a valid MySQL result resource in file /home/iteach.com.ua/public_html/sme/classes/system/data/mysql/mysqlconnection.php at line 230
 [21-04-2018 19:20:24] E_WARNING: mysql_num_fields(): supplied argument is not a valid MySQL result resource in file /home/iteach.com.ua/public_html/sme/classes/system/data/mysql/mysqlconnection.php at line 236
Array
(
    [description] => SELECT count(*) AS itemsCount FROM (SELECT
            event_id,
            event_name, event_type,
            event_publish, event_register_allowed,
            event_description,
            UNIX_TIMESTAMP(event_date_start) AS event_date_start,
            UNIX_TIMESTAMP(event_date_end) AS event_date_end,
            event_region_id, event_city
            
            FROM events
             LEFT JOIN events_subjects ON events_subjects.fk_event_id=events.event_id
            WHERE 1=1
             AND (events_subjects.event_subject='реклама')  AND (event_publish=1)  AND (event_date_end >= CURDATE() AND event_date_start <= DATE_ADD(CURDATE(), INTERVAL 1 MONTH)) 
        ) AS res
    [time] => 0.00032687187194824
    [error] => Got error 28 from storage engine
)