The columns aqbookesellers.listprice and aqbookesellers.invoiceprice have FK constraints on the 'currencies' table, and they are actually documented as currencies. So, they need to be renamed. listprice is used the rigth way in aqorders.