Sorry, database error detected.
Please try again.
select G.good_id, G.g_name, G.g_article, G.g_description, G.g_cost, G.g_registr, G.g_sklad, G.g_hotcost, G.g_hotnewgoods, G.g_hotsale, G.g_edizm, G.g_normaup, T.meta_def, V.v_nick, V.v_val,S.name ref_name, R.ref_id r_ref_id, R.good_id r_good_id , sprv_1, sprv_2, sprv_3, sprv_4, sprv_7 from ssp_Goods G left join ssp_GoodsTree T on T.item_id = G.item_id left join ssp_Valute V on G.valute_id = V.valute_id inner join ssp_GoodsReferences R on (R.good_id = G.good_id and R.ref_id = 40959) or (R.good_id = 40959 and R.ref_id = G.good_id) left join ssp_SprData S on spr_id = 3 and data_id = if(G.good_id = R.good_id, R.good_spr, R.ref_spr) where g_public > 0 and (G.sprv_3 <> R.good_spr or G.sprv_3 <> R.ref_spr) order by ref_name, G.g_name

Got error 28 from storage engine