$products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'group by pov.products_options_values_name, order by pov.products_options_values_id desc");
這裏的代碼顯示誤差 1064 - 你在你的SQL語法錯誤;檢查對應於你的MySQL服務器版本,在1號線附近使用「通過pov.products_options_values_id倒序」sql查詢顯示誤差近的順序由
你必須POV組後''沒有空間...'和爲什麼在'group by pov.products_options_values_name'後面有''''','orderby' –