DB Error: syntax errorDB_Error Object
(
    [error_message_prefix] => 
    [mode] => 16
    [level] => 1024
    [code] => -2
    [message] => DB Error: syntax error
    [userinfo] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from osdate_pictures where c_id = '13' and active = 'Y' order by  limit 36, 12 [nativecode=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 'limit 36, 12' at line 1]
    [backtrace] => Array
        (
            [0] => Array
                (
                    [file] => /usr/home/e-bahur/public_html/libs/Pear/DB.php
                    [line] => 748
                    [function] => PEAR_Error
                    [class] => PEAR_Error
                    [object] => DB_Error Object
 *RECURSION*
                    [type] => ->
                    [args] => Array
                        (
                            [0] => DB Error: syntax error
                            [1] => -2
                            [2] => 16
                            [3] => errhndl
                            [4] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from osdate_pictures where c_id = '13' and active = 'Y' order by  limit 36, 12 [nativecode=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 'limit 36, 12' at line 1]
                        )

                )

            [1] => Array
                (
                    [file] => /usr/home/e-bahur/public_html/libs/Pear/PEAR.php
                    [line] => 539
                    [function] => DB_Error
                    [class] => DB_Error
                    [object] => DB_Error Object
 *RECURSION*
                    [type] => ->
                    [args] => Array
                        (
                            [0] => -2
                            [1] => 16
                            [2] => errhndl
                            [3] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from osdate_pictures where c_id = '13' and active = 'Y' order by  limit 36, 12 [nativecode=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 'limit 36, 12' at line 1]
                        )

                )

            [2] => Array
                (
                    [file] => /usr/home/e-bahur/public_html/libs/Pear/DB/common.php
                    [line] => 501
                    [function] => raiseError
                    [class] => PEAR
                    [object] => DB_mysql Object
                        (
                            [connection] => Resource id #17
                            [phptype] => mysql
                            [dbsyntax] => mysql
                            [prepare_tokens] => Array
                                (
                                    [50] => Array
                                        (
                                            [0] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from 
                                            [1] =>  where c_id = 
                                            [2] =>  and active = 
                                            [3] =>  order by  limit 36, 12
                                        )

                                )

                            [prepare_types] => Array
                                (
                                    [50] => Array
                                        (
                                            [0] => 3
                                            [1] => 1
                                            [2] => 1
                                        )

                                )

                            [num_rows] => Array
                                (
                                    [69] => 0
                                )

                            [transaction_opcount] => 0
                            [autocommit] => 1
                            [fetchmode] => 2
                            [_db] => ebahur
                            [features] => Array
                                (
                                    [prepare] => 
                                    [pconnect] => 1
                                    [transactions] => 1
                                    [limit] => alter
                                )

                            [errorcode_map] => Array
                                (
                                    [1004] => -15
                                    [1005] => -15
                                    [1006] => -15
                                    [1007] => -5
                                    [1008] => -17
                                    [1022] => -5
                                    [1046] => -14
                                    [1050] => -5
                                    [1051] => -18
                                    [1054] => -19
                                    [1062] => -5
                                    [1064] => -2
                                    [1100] => -21
                                    [1136] => -22
                                    [1146] => -18
                                    [1048] => -3
                                    [1216] => -3
                                )

                            [prepared_queries] => Array
                                (
                                    [50] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from   where c_id =   and active =   order by  limit 36, 12
                                )

                            [prepare_maxstmt] => 0
                            [last_query] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from osdate_pictures where c_id = '13' and active = 'Y' order by  limit 36, 12
                            [fetchmode_object_class] => stdClass
                            [options] => Array
                                (
                                    [persistent] => 
                                    [ssl] => 
                                    [debug] => 0
                                    [seqname_format] => %s_seq
                                    [autofree] => 
                                    [portability] => 0
                                    [optimize] => performance
                                )

                            [dbh] => 
                            [_debug] => 
                            [_default_error_mode] => 
                            [_default_error_options] => 
                            [_default_error_handler] => 
                            [_error_class] => DB_Error
                            [_expected_errors] => Array
                                (
                                )

                            [dsn] => Array
                                (
                                    [phptype] => mysql
                                    [dbsyntax] => mysql
                                    [username] => ebahur
                                    [password] => gunner
                                    [protocol] => tcp
                                    [hostspec] => localhost
                                    [port] => 
                                    [socket] => 
                                    [database] => ebahur
                                )

                        )

                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
                            [1] => -2
                            [2] => 
                            [3] => 
                            [4] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from osdate_pictures where c_id = '13' and active = 'Y' order by  limit 36, 12 [nativecode=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 'limit 36, 12' at line 1]
                            [5] => DB_Error
                            [6] => 1
                        )

                )

            [3] => Array
                (
                    [file] => /usr/home/e-bahur/public_html/libs/Pear/DB/mysql.php
                    [line] => 775
                    [function] => raiseError
                    [class] => DB_common
                    [object] => DB_mysql Object
                        (
                            [connection] => Resource id #17
                            [phptype] => mysql
                            [dbsyntax] => mysql
                            [prepare_tokens] => Array
                                (
                                    [50] => Array
                                        (
                                            [0] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from 
                                            [1] =>  where c_id = 
                                            [2] =>  and active = 
                                            [3] =>  order by  limit 36, 12
                                        )

                                )

                            [prepare_types] => Array
                                (
                                    [50] => Array
                                        (
                                            [0] => 3
                                            [1] => 1
                                            [2] => 1
                                        )

                                )

                            [num_rows] => Array
                                (
                                    [69] => 0
                                )

                            [transaction_opcount] => 0
                            [autocommit] => 1
                            [fetchmode] => 2
                            [_db] => ebahur
                            [features] => Array
                                (
                                    [prepare] => 
                                    [pconnect] => 1
                                    [transactions] => 1
                                    [limit] => alter
                                )

                            [errorcode_map] => Array
                                (
                                    [1004] => -15
                                    [1005] => -15
                                    [1006] => -15
                                    [1007] => -5
                                    [1008] => -17
                                    [1022] => -5
                                    [1046] => -14
                                    [1050] => -5
                                    [1051] => -18
                                    [1054] => -19
                                    [1062] => -5
                                    [1064] => -2
                                    [1100] => -21
                                    [1136] => -22
                                    [1146] => -18
                                    [1048] => -3
                                    [1216] => -3
                                )

                            [prepared_queries] => Array
                                (
                                    [50] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from   where c_id =   and active =   order by  limit 36, 12
                                )

                            [prepare_maxstmt] => 0
                            [last_query] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from osdate_pictures where c_id = '13' and active = 'Y' order by  limit 36, 12
                            [fetchmode_object_class] => stdClass
                            [options] => Array
                                (
                                    [persistent] => 
                                    [ssl] => 
                                    [debug] => 0
                                    [seqname_format] => %s_seq
                                    [autofree] => 
                                    [portability] => 0
                                    [optimize] => performance
                                )

                            [dbh] => 
                            [_debug] => 
                            [_default_error_mode] => 
                            [_default_error_options] => 
                            [_default_error_handler] => 
                            [_error_class] => DB_Error
                            [_expected_errors] => Array
                                (
                                )

                            [dsn] => Array
                                (
                                    [phptype] => mysql
                                    [dbsyntax] => mysql
                                    [username] => ebahur
                                    [password] => gunner
                                    [protocol] => tcp
                                    [hostspec] => localhost
                                    [port] => 
                                    [socket] => 
                                    [database] => ebahur
                                )

                        )

                    [type] => ->
                    [args] => Array
                        (
                            [0] => -2
                            [1] => 
                            [2] => 
                            [3] => 
                            [4] => 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 'limit 36, 12' at line 1
                        )

                )

            [4] => Array
                (
                    [file] => /usr/home/e-bahur/public_html/libs/Pear/DB/mysql.php
                    [line] => 227
                    [function] => mysqlRaiseError
                    [class] => DB_mysql
                    [object] => DB_mysql Object
                        (
                            [connection] => Resource id #17
                            [phptype] => mysql
                            [dbsyntax] => mysql
                            [prepare_tokens] => Array
                                (
                                    [50] => Array
                                        (
                                            [0] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from 
                                            [1] =>  where c_id = 
                                            [2] =>  and active = 
                                            [3] =>  order by  limit 36, 12
                                        )

                                )

                            [prepare_types] => Array
                                (
                                    [50] => Array
                                        (
                                            [0] => 3
                                            [1] => 1
                                            [2] => 1
                                        )

                                )

                            [num_rows] => Array
                                (
                                    [69] => 0
                                )

                            [transaction_opcount] => 0
                            [autocommit] => 1
                            [fetchmode] => 2
                            [_db] => ebahur
                            [features] => Array
                                (
                                    [prepare] => 
                                    [pconnect] => 1
                                    [transactions] => 1
                                    [limit] => alter
                                )

                            [errorcode_map] => Array
                                (
                                    [1004] => -15
                                    [1005] => -15
                                    [1006] => -15
                                    [1007] => -5
                                    [1008] => -17
                                    [1022] => -5
                                    [1046] => -14
                                    [1050] => -5
                                    [1051] => -18
                                    [1054] => -19
                                    [1062] => -5
                                    [1064] => -2
                                    [1100] => -21
                                    [1136] => -22
                                    [1146] => -18
                                    [1048] => -3
                                    [1216] => -3
                                )

                            [prepared_queries] => Array
                                (
                                    [50] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from   where c_id =   and active =   order by  limit 36, 12
                                )

                            [prepare_maxstmt] => 0
                            [last_query] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from osdate_pictures where c_id = '13' and active = 'Y' order by  limit 36, 12
                            [fetchmode_object_class] => stdClass
                            [options] => Array
                                (
                                    [persistent] => 
                                    [ssl] => 
                                    [debug] => 0
                                    [seqname_format] => %s_seq
                                    [autofree] => 
                                    [portability] => 0
                                    [optimize] => performance
                                )

                            [dbh] => 
                            [_debug] => 
                            [_default_error_mode] => 
                            [_default_error_options] => 
                            [_default_error_handler] => 
                            [_error_class] => DB_Error
                            [_expected_errors] => Array
                                (
                                )

                            [dsn] => Array
                                (
                                    [phptype] => mysql
                                    [dbsyntax] => mysql
                                    [username] => ebahur
                                    [password] => gunner
                                    [protocol] => tcp
                                    [hostspec] => localhost
                                    [port] => 
                                    [socket] => 
                                    [database] => ebahur
                                )

                        )

                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [5] => Array
                (
                    [file] => /usr/home/e-bahur/public_html/libs/Pear/DB/common.php
                    [line] => 954
                    [function] => simpleQuery
                    [class] => DB_mysql
                    [object] => DB_mysql Object
                        (
                            [connection] => Resource id #17
                            [phptype] => mysql
                            [dbsyntax] => mysql
                            [prepare_tokens] => Array
                                (
                                    [50] => Array
                                        (
                                            [0] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from 
                                            [1] =>  where c_id = 
                                            [2] =>  and active = 
                                            [3] =>  order by  limit 36, 12
                                        )

                                )

                            [prepare_types] => Array
                                (
                                    [50] => Array
                                        (
                                            [0] => 3
                                            [1] => 1
                                            [2] => 1
                                        )

                                )

                            [num_rows] => Array
                                (
                                    [69] => 0
                                )

                            [transaction_opcount] => 0
                            [autocommit] => 1
                            [fetchmode] => 2
                            [_db] => ebahur
                            [features] => Array
                                (
                                    [prepare] => 
                                    [pconnect] => 1
                                    [transactions] => 1
                                    [limit] => alter
                                )

                            [errorcode_map] => Array
                                (
                                    [1004] => -15
                                    [1005] => -15
                                    [1006] => -15
                                    [1007] => -5
                                    [1008] => -17
                                    [1022] => -5
                                    [1046] => -14
                                    [1050] => -5
                                    [1051] => -18
                                    [1054] => -19
                                    [1062] => -5
                                    [1064] => -2
                                    [1100] => -21
                                    [1136] => -22
                                    [1146] => -18
                                    [1048] => -3
                                    [1216] => -3
                                )

                            [prepared_queries] => Array
                                (
                                    [50] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from   where c_id =   and active =   order by  limit 36, 12
                                )

                            [prepare_maxstmt] => 0
                            [last_query] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from osdate_pictures where c_id = '13' and active = 'Y' order by  limit 36, 12
                            [fetchmode_object_class] => stdClass
                            [options] => Array
                                (
                                    [persistent] => 
                                    [ssl] => 
                                    [debug] => 0
                                    [seqname_format] => %s_seq
                                    [autofree] => 
                                    [portability] => 0
                                    [optimize] => performance
                                )

                            [dbh] => 
                            [_debug] => 
                            [_default_error_mode] => 
                            [_default_error_options] => 
                            [_default_error_handler] => 
                            [_error_class] => DB_Error
                            [_expected_errors] => Array
                                (
                                )

                            [dsn] => Array
                                (
                                    [phptype] => mysql
                                    [dbsyntax] => mysql
                                    [username] => ebahur
                                    [password] => gunner
                                    [protocol] => tcp
                                    [hostspec] => localhost
                                    [port] => 
                                    [socket] => 
                                    [database] => ebahur
                                )

                        )

                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from osdate_pictures where c_id = '13' and active = 'Y' order by  limit 36, 12
                        )

                )

            [6] => Array
                (
                    [file] => /usr/home/e-bahur/public_html/libs/Pear/DB/common.php
                    [line] => 1579
                    [function] => execute
                    [class] => DB_common
                    [object] => DB_mysql Object
                        (
                            [connection] => Resource id #17
                            [phptype] => mysql
                            [dbsyntax] => mysql
                            [prepare_tokens] => Array
                                (
                                    [50] => Array
                                        (
                                            [0] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from 
                                            [1] =>  where c_id = 
                                            [2] =>  and active = 
                                            [3] =>  order by  limit 36, 12
                                        )

                                )

                            [prepare_types] => Array
                                (
                                    [50] => Array
                                        (
                                            [0] => 3
                                            [1] => 1
                                            [2] => 1
                                        )

                                )

                            [num_rows] => Array
                                (
                                    [69] => 0
                                )

                            [transaction_opcount] => 0
                            [autocommit] => 1
                            [fetchmode] => 2
                            [_db] => ebahur
                            [features] => Array
                                (
                                    [prepare] => 
                                    [pconnect] => 1
                                    [transactions] => 1
                                    [limit] => alter
                                )

                            [errorcode_map] => Array
                                (
                                    [1004] => -15
                                    [1005] => -15
                                    [1006] => -15
                                    [1007] => -5
                                    [1008] => -17
                                    [1022] => -5
                                    [1046] => -14
                                    [1050] => -5
                                    [1051] => -18
                                    [1054] => -19
                                    [1062] => -5
                                    [1064] => -2
                                    [1100] => -21
                                    [1136] => -22
                                    [1146] => -18
                                    [1048] => -3
                                    [1216] => -3
                                )

                            [prepared_queries] => Array
                                (
                                    [50] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from   where c_id =   and active =   order by  limit 36, 12
                                )

                            [prepare_maxstmt] => 0
                            [last_query] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from osdate_pictures where c_id = '13' and active = 'Y' order by  limit 36, 12
                            [fetchmode_object_class] => stdClass
                            [options] => Array
                                (
                                    [persistent] => 
                                    [ssl] => 
                                    [debug] => 0
                                    [seqname_format] => %s_seq
                                    [autofree] => 
                                    [portability] => 0
                                    [optimize] => performance
                                )

                            [dbh] => 
                            [_debug] => 
                            [_default_error_mode] => 
                            [_default_error_options] => 
                            [_default_error_handler] => 
                            [_error_class] => DB_Error
                            [_expected_errors] => Array
                                (
                                )

                            [dsn] => Array
                                (
                                    [phptype] => mysql
                                    [dbsyntax] => mysql
                                    [username] => ebahur
                                    [password] => gunner
                                    [protocol] => tcp
                                    [hostspec] => localhost
                                    [port] => 
                                    [socket] => 
                                    [database] => ebahur
                                )

                        )

                    [type] => ->
                    [args] => Array
                        (
                            [0] => 50
                            [1] => Array
                                (
                                    [0] => osdate_pictures
                                    [1] => 13
                                    [2] => Y
                                )

                        )

                )

            [7] => Array
                (
                    [file] => /usr/home/e-bahur/public_html/includes/internal/pictures.class.php
                    [line] => 22
                    [function] => getAll
                    [class] => DB_common
                    [object] => DB_mysql Object
                        (
                            [connection] => Resource id #17
                            [phptype] => mysql
                            [dbsyntax] => mysql
                            [prepare_tokens] => Array
                                (
                                    [50] => Array
                                        (
                                            [0] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from 
                                            [1] =>  where c_id = 
                                            [2] =>  and active = 
                                            [3] =>  order by  limit 36, 12
                                        )

                                )

                            [prepare_types] => Array
                                (
                                    [50] => Array
                                        (
                                            [0] => 3
                                            [1] => 1
                                            [2] => 1
                                        )

                                )

                            [num_rows] => Array
                                (
                                    [69] => 0
                                )

                            [transaction_opcount] => 0
                            [autocommit] => 1
                            [fetchmode] => 2
                            [_db] => ebahur
                            [features] => Array
                                (
                                    [prepare] => 
                                    [pconnect] => 1
                                    [transactions] => 1
                                    [limit] => alter
                                )

                            [errorcode_map] => Array
                                (
                                    [1004] => -15
                                    [1005] => -15
                                    [1006] => -15
                                    [1007] => -5
                                    [1008] => -17
                                    [1022] => -5
                                    [1046] => -14
                                    [1050] => -5
                                    [1051] => -18
                                    [1054] => -19
                                    [1062] => -5
                                    [1064] => -2
                                    [1100] => -21
                                    [1136] => -22
                                    [1146] => -18
                                    [1048] => -3
                                    [1216] => -3
                                )

                            [prepared_queries] => Array
                                (
                                    [50] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from   where c_id =   and active =   order by  limit 36, 12
                                )

                            [prepare_maxstmt] => 0
                            [last_query] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from osdate_pictures where c_id = '13' and active = 'Y' order by  limit 36, 12
                            [fetchmode_object_class] => stdClass
                            [options] => Array
                                (
                                    [persistent] => 
                                    [ssl] => 
                                    [debug] => 0
                                    [seqname_format] => %s_seq
                                    [autofree] => 
                                    [portability] => 0
                                    [optimize] => performance
                                )

                            [dbh] => 
                            [_debug] => 
                            [_default_error_mode] => 
                            [_default_error_options] => 
                            [_default_error_handler] => 
                            [_error_class] => DB_Error
                            [_expected_errors] => Array
                                (
                                )

                            [dsn] => Array
                                (
                                    [phptype] => mysql
                                    [dbsyntax] => mysql
                                    [username] => ebahur
                                    [password] => gunner
                                    [protocol] => tcp
                                    [hostspec] => localhost
                                    [port] => 
                                    [socket] => 
                                    [database] => ebahur
                                )

                        )

                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT id, c_id, userid, picture, title, description, unix_timestamp(ins_time) as ins_time, active, views from ! where c_id = ? and active = ? order by  limit 36, 12
                            [1] => Array
                                (
                                    [0] => osdate_pictures
                                    [1] => 13
                                    [2] => Y
                                )

                        )

                )

            [8] => Array
                (
                    [file] => /usr/home/e-bahur/public_html/category.php
                    [line] => 18
                    [function] => ListItems
                    [class] => Pictures
                    [object] => Pictures Object
                        (
                            [id] => 
                            [c_id] => 
                            [npp] => 12
                            [limit] => 36
                        )

                    [type] => ->
                    [args] => Array
                        (
                            [0] => 13
                        )

                )

        )

    [callback] => errhndl
)