An error occurred in script '/srv/domini/britishinstitute.it/www/inc/php/funcs.php' on line 237: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given
Date/Time: 11-21-2017 18:09:22
Array
(
    [pag] => 
    [dbc] => mysqli Object
        (
            [affected_rows] => -1
            [client_info] => mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $
            [client_version] => 50012
            [connect_errno] => 0
            [connect_error] => 
            [errno] => 1064
            [error] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY pggOrdine' at line 1
            [error_list] => Array
                (
                    [0] => Array
                        (
                            [errno] => 1064
                            [sqlstate] => 42000
                            [error] => You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY pggOrdine' at line 1
                        )

                )

            [field_count] => 21
            [host_info] => 192.168.100.3 via TCP/IP
            [info] => 
            [insert_id] => 0
            [server_info] => 5.5.5-10.0.28-MariaDB-0ubuntu0.16.04.1
            [server_version] => 50505
            [stat] => Uptime: 19248  Threads: 18  Questions: 449905  Slow queries: 63  Opens: 735  Flush tables: 1  Open tables: 400  Queries per second avg: 23.374
            [sqlstate] => 00000
            [protocol_version] => 10
            [thread_id] => 59191
            [warning_count] => 0
        )

    [gal_q] => SELECT * FROM tblpagine_gallery WHERE pgnId =  ORDER BY pggOrdine
    [gal_s] => 
    [retVal] => 
)

#0  my_error_handler(2, mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given, /srv/domini/britishinstitute.it/www/inc/php/funcs.php, 237, Array ([pag] => ,[dbc] => mysqli Object ([affected_rows] => ,[client_info] => ,[client_version] => ,[connect_errno] => ,[connect_error] => ,[errno] => ,[error] => ,[error_list] => ,[field_count] => ,[host_info] => ,[info] => ,[insert_id] => ,[server_info] => ,[server_version] => ,[stat] => ,[sqlstate] => ,[protocol_version] => ,[thread_id] => ,[warning_count] => ),[gal_q] => SELECT * FROM tblpagine_gallery WHERE pgnId =  ORDER BY pggOrdine,[gal_s] => ,[retVal] => ))
#1  mysqli_num_rows() called at [/srv/domini/britishinstitute.it/www/inc/php/funcs.php:237]
#2  np_page_gallery(, mysqli Object ([affected_rows] => ,[client_info] => ,[client_version] => ,[connect_errno] => ,[connect_error] => ,[errno] => ,[error] => ,[error_list] => ,[field_count] => ,[host_info] => ,[info] => ,[insert_id] => ,[server_info] => ,[server_version] => ,[stat] => ,[sqlstate] => ,[protocol_version] => ,[thread_id] => ,[warning_count] => )) called at [/srv/domini/britishinstitute.it/www/page.php:76]
An error occurred in script '/srv/domini/britishinstitute.it/www/inc/php/funcs.php' on line 245: mysqli_free_result() expects parameter 1 to be mysqli_result, boolean given
Date/Time: 11-21-2017 18:09:22
Array
(
    [pag] => 
    [dbc] => mysqli Object
        (
            [affected_rows] => -1
            [client_info] => mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $
            [client_version] => 50012
            [connect_errno] => 0
            [connect_error] => 
            [errno] => 0
            [error] => 
            [error_list] => Array
                (
                )

            [field_count] => 21
            [host_info] => 192.168.100.3 via TCP/IP
            [info] => 
            [insert_id] => 0
            [server_info] => 5.5.5-10.0.28-MariaDB-0ubuntu0.16.04.1
            [server_version] => 50505
            [stat] => Uptime: 19248  Threads: 18  Questions: 449905  Slow queries: 63  Opens: 735  Flush tables: 1  Open tables: 400  Queries per second avg: 23.374
            [sqlstate] => 00000
            [protocol_version] => 10
            [thread_id] => 59191
            [warning_count] => 0
        )

    [gal_q] => SELECT * FROM tblpagine_gallery WHERE pgnId =  ORDER BY pggOrdine
    [gal_s] => 
    [retVal] => 
)

#0  my_error_handler(2, mysqli_free_result() expects parameter 1 to be mysqli_result, boolean given, /srv/domini/britishinstitute.it/www/inc/php/funcs.php, 245, Array ([pag] => ,[dbc] => mysqli Object ([affected_rows] => ,[client_info] => ,[client_version] => ,[connect_errno] => ,[connect_error] => ,[errno] => ,[error] => ,[error_list] => ,[field_count] => ,[host_info] => ,[info] => ,[insert_id] => ,[server_info] => ,[server_version] => ,[stat] => ,[sqlstate] => ,[protocol_version] => ,[thread_id] => ,[warning_count] => ),[gal_q] => SELECT * FROM tblpagine_gallery WHERE pgnId =  ORDER BY pggOrdine,[gal_s] => ,[retVal] => ))
#1  mysqli_free_result() called at [/srv/domini/britishinstitute.it/www/inc/php/funcs.php:245]
#2  np_page_gallery(, mysqli Object ([affected_rows] => ,[client_info] => ,[client_version] => ,[connect_errno] => ,[connect_error] => ,[errno] => ,[error] => ,[error_list] => ,[field_count] => ,[host_info] => ,[info] => ,[insert_id] => ,[server_info] => ,[server_version] => ,[stat] => ,[sqlstate] => ,[protocol_version] => ,[thread_id] => ,[warning_count] => )) called at [/srv/domini/britishinstitute.it/www/page.php:76]