SELECT * FROM product_images WHERE media_ref_id = ORDER BY media_order ASC

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 'ORDER BY media_order ASC' at line 1

#1 /data/sites/web/3l81jtb-hostingcom/web/products.php(14): WA_MySQLi_RS->execute()