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 '%2C p.price ASC LIMIT 30,15' at line 32

Query: 
						SELECT 
							if(p.stock>0,"1","0") as exist,
							p.categories as category_id,
							p.image as images,
							p.id,
							p.title,
							p.alias,
							p.unit,
							p.price as price,
							p.text,
							p.stock,
							p.introtext,
							p.related,
							p.share_id,
							p.price_old,p.sku,
							p.popular,
							p.date,
							p.sale_persent,
    						p.sale,
							c.alias as category_alias,
							c.title as category_title 
						FROM 
							products as p 
							LEFT JOIN 
								product_categories as c 
							ON 
								p.categories = c.id OR p.dop_category = c.id	WHERE 
							p.publication = 1 AND p.stock != 0 AND c.public = 1 AND p.price > 0 AND c.id IN(229,118,121,128,130,131,132,135,138,155,156,157,193,195,212,235,236,237,238) 
						
						GROUP BY 
							p.id ORDER BY 
							p.popular DESC%2C p.price ASC LIMIT 30,15

File: /home/dev/www/html/almazblag.ru/core/Db.php Line: 75

Array
(
    [0] => Array
        (
            [file] => /home/dev/www/html/almazblag.ru/classes/Products.class
            [line] => 1414
            [function] => getBySql
            [class] => DB
            [type] => ->
            [args] => Array
                (
                    [0] => 
						SELECT 
							if(p.stock>0,"1","0") as exist,
							p.categories as category_id,
							p.image as images,
							p.id,
							p.title,
							p.alias,
							p.unit,
							p.price as price,
							p.text,
							p.stock,
							p.introtext,
							p.related,
							p.share_id,
							p.price_old,p.sku,
							p.popular,
							p.date,
							p.sale_persent,
    						p.sale,
							c.alias as category_alias,
							c.title as category_title 
						FROM 
							products as p 
							LEFT JOIN 
								product_categories as c 
							ON 
								p.categories = c.id OR p.dop_category = c.id	WHERE 
							p.publication = 1 AND p.stock != 0 AND c.public = 1 AND p.price > 0 AND c.id IN(229,118,121,128,130,131,132,135,138,155,156,157,193,195,212,235,236,237,238) 
						
						GROUP BY 
							p.id ORDER BY 
							p.popular DESC%2C p.price ASC LIMIT 30,15
                )

        )

    [1] => Array
        (
            [file] => /home/dev/www/html/almazblag.ru/classes/CategoriesProducts.class
            [line] => 230
            [function] => viewItems
            [class] => Products
            [type] => ->
            [args] => Array
                (
                    [0] => 229
                    [1] => Array
                        (
                            [user] => 
                            [url_data] => Array
                                (
                                    [0] => shop
                                    [1] => 229-chasy
                                )

                            [get_params] => Array
                                (
                                    [start] => 30
                                    [order] => p.popular DESC%2C p.price ASC
                                )

                        )

                )

        )

    [2] => Array
        (
            [file] => /home/dev/www/html/almazblag.ru/classes/ShopController.class
            [line] => 171
            [function] => view
            [class] => CategoriesProducts
            [type] => ->
            [args] => Array
                (
                    [0] => 229-chasy
                    [1] => Array
                        (
                            [user] => 
                            [url_data] => Array
                                (
                                    [0] => shop
                                    [1] => 229-chasy
                                )

                            [get_params] => Array
                                (
                                    [start] => 30
                                    [order] => p.popular DESC%2C p.price ASC
                                )

                        )

                )

        )

    [3] => Array
        (
            [file] => /home/dev/www/html/almazblag.ru/includes/App.php
            [line] => 184
            [function] => defaultAction
            [class] => ShopController
            [type] => ->
            [args] => Array
                (
                    [0] => Array
                        (
                            [user] => 
                            [url_data] => Array
                                (
                                    [0] => shop
                                    [1] => 229-chasy
                                )

                            [get_params] => Array
                                (
                                    [start] => 30
                                    [order] => p.popular DESC%2C p.price ASC
                                )

                        )

                )

        )

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

        )

)