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 'GROUP BY 
						p.id 
					ORDER BY 
						p.price DESC LIMIT 0,8' at line 10

Query: SELECT 
						p.*
					FROM 
						products as p
						LEFT JOIN 
							product_categories as c 
						ON 
							p.categories = c.id	WHERE 
						 
					GROUP BY 
						p.id 
					ORDER BY 
						p.price DESC LIMIT 0,8

File: /var/www/vitsafe.com/html/core/Db.php Line: 70

Array
(
    [0] => Array
        (
            [file] => /var/www/vitsafe.com/html/classes/Products.class
            [line] => 698
            [function] => getBySql
            [class] => DB
            [type] => ->
            [args] => Array
                (
                    [0] => SELECT 
						p.*
					FROM 
						products as p
						LEFT JOIN 
							product_categories as c 
						ON 
							p.categories = c.id	WHERE 
						 
					GROUP BY 
						p.id 
					ORDER BY 
						p.price DESC LIMIT 0,8
                )

        )

    [1] => Array
        (
            [file] => /var/www/vitsafe.com/html/classes/ProductsController.class
            [line] => 109
            [function] => viewRegular2
            [class] => Products
            [type] => ->
            [args] => Array
                (
                    [0] => 0
                    [1] => Array
                        (
                            [user] => 0
                            [url_data] => Array
                                (
                                    [0] => products
                                    [1] => 13-se-fy
                                    [2] => ?order=p.price%20DESC
                                )

                            [get_params] => Array
                                (
                                    [order] => p.price DESC
                                )

                        )

                )

        )

    [2] => Array
        (
            [file] => /var/www/vitsafe.com/html/includes/App.php
            [line] => 125
            [function] => defaultAction
            [class] => ProductsController
            [type] => ->
            [args] => Array
                (
                    [0] => Array
                        (
                            [user] => 0
                            [url_data] => Array
                                (
                                    [0] => products
                                    [1] => 13-se-fy
                                    [2] => ?order=p.price%20DESC
                                )

                            [get_params] => Array
                                (
                                    [order] => p.price DESC
                                )

                        )

                )

        )

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

        )

)