MySQL Error! Name: NoResult [Select matprice from mat_price where good_id= AND matprice Order By matprice limit 1].
MySQL answer: 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 'AND matprice Order By matprice limit 1' at line 1.