Database error: 1064 : 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 'OR products_extra_categories.subcategory_2_id = ) ' at line 6
Invalid query: SELECT DISTINCT products.id,alias,title_gr title, CONCAT('/index.php?t=products&a=','trofima','¶m1=','vrefikestrofespaidika','¶m2=','','¶m3=',alias) link, CONCAT('https://greenbay.gr/images/products/list/',list_image) image FROM products LEFT JOIN products_extra_categories ON products_extra_categories.product_id= products.id WHERE status=1 AND ( product_subcategory_2_id= OR products_extra_categories.subcategory_2_id = ) GROUP BY products.id ORDER BY sortorder


Backtrace:
File:/home/greenbay/public_html/index.php
Line:5
Function:include
File:/home/greenbay/public_html/init.php
Line:246
Function:include
File:/home/greenbay/public_html/include/products.php
Line:147
Function:fn_get_products_data
File:/home/greenbay/public_html/include/products.php
Line:106
Function:db_get_array
File:/home/greenbay/public_html/core/database.php
Line:14
Function:db_query
File:/home/greenbay/public_html/core/db_mysql.php
Line:63
Function:db_debug_error