Error SQL: 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 '' at line 1

Query: SELECT r.* FROM category_doctors as r WHERE r.id = 

File: /home/dev/www/amurmed.ru/html/core/Db.php Line: 70

Array
(
    [0] => Array
        (
            [file] => /home/dev/www/amurmed.ru/html/classes/Doctors.class
            [line] => 28
            [function] => getBySql
            [class] => DB
            [type] => ->
            [args] => Array
                (
                    [0] => SELECT r.* FROM category_doctors as r WHERE r.id = 
                )

        )

    [1] => Array
        (
            [file] => /home/dev/www/amurmed.ru/html/classes/DoctorsController.class
            [line] => 55
            [function] => viewArticleCat
            [class] => Doctors
            [type] => ->
            [args] => Array
                (
                    [0] => -
                )

        )

    [2] => Array
        (
            [file] => /home/dev/www/amurmed.ru/html/includes/App.php
            [line] => 143
            [function] => defaultAction
            [class] => DoctorsController
            [type] => ->
            [args] => Array
                (
                    [0] => Array
                        (
                            [user] => 0
                            [url_data] => Array
                                (
                                    [0] => doctors
                                    [1] => -
                                    [2] => 48-sakharjuk-aleksandr-petrovich
                                )

                            [get_params] => Array
                                (
                                )

                        )

                )

        )

    [3] => Array
        (
            [file] => /home/dev/www/amurmed.ru/html/index.php
            [line] => 9
            [function] => run
            [class] => App
            [type] => ->
            [args] => Array
                (
                )

        )

)