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 4

Query: SELECT 
						max(p.price) as max_price 
					FROM 
						products as p		WHERE 
						

File: /var/www/juteks-shop.ru/html/core/Db.php Line: 75

Array
(
    [0] => Array
        (
            [file] => /var/www/juteks-shop.ru/html/classes/Products.class
            [line] => 673
            [function] => getBySql
            [class] => DB
            [type] => ->
            [args] => Array
                (
                    [0] => SELECT 
						max(p.price) as max_price 
					FROM 
						products as p		WHERE 
						
                )

        )

    [1] => Array
        (
            [file] => /var/www/juteks-shop.ru/html/classes/ProductsController.class
            [line] => 121
            [function] => viewRegular2
            [class] => Products
            [type] => ->
            [args] => Array
                (
                    [0] => 0
                    [1] => Array
                        (
                            [user] => 
                            [url_data] => Array
                                (
                                    [0] => products
                                    [1] => 2-legkaja-kommertsija
                                    [2] => 
                                )

                            [get_params] => Array
                                (
                                    [start] => 18
                                )

                        )

                )

        )

    [2] => Array
        (
            [file] => /var/www/juteks-shop.ru/html/includes/App.php
            [line] => 133
            [function] => defaultAction
            [class] => ProductsController
            [type] => ->
            [args] => Array
                (
                    [0] => Array
                        (
                            [user] => 
                            [url_data] => Array
                                (
                                    [0] => products
                                    [1] => 2-legkaja-kommertsija
                                    [2] => 
                                )

                            [get_params] => Array
                                (
                                    [start] => 18
                                )

                        )

                )

        )

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

        )

)