select materials.*
from materials_products
inner join materials on materials.id = materials_products.material_id
where materials_products.product_id = ?
order by materials.name ascArray
(
[0] => HY000
[1] => 1030
[2] => Got error 28 from storage engine
)