Notice: Undefined offset: 1 in /var/www/api.pelesit.com/class/api.php on line 141

Notice: Undefined variable: parameters in /var/www/api.pelesit.com/class/api.php on line 144

Warning: array_merge(): Argument #2 is not an array in /var/www/api.pelesit.com/class/api.php on line 144

Notice: Use of undefined constant IS_DEV - assumed 'IS_DEV' in /var/www/api.pelesit.com/class/db.php on line 65

Warning: usort() expects parameter 1 to be array, null given in /var/www/api.pelesit.com/class/db.php on line 100

Warning: Invalid argument supplied for foreach() in /var/www/api.pelesit.com/class/db.php on line 103
QUERY: 
            SELECT
              *
            FROM
              endpoint
            WHERE
              user_id = '9865570c-449d-11e7-b348-42010af00d55'
            AND
              status = 'active'
            AND
              method = :method
            AND
              version = :version
            AND
              SUBSTRING_INDEX( SUBSTRING_INDEX( path, '/', 2  ), '/', -1 ) = :controller
            AND( 1 = 1
              
            )
        

BIND PARAMS:

SQLSTATE[HY093]: Invalid parameter number: no parameters were bound