Open Godley opened 9 years ago
actually that query won't work, because it uses AND for all the thingy values - this will return nothing if we have no data on absolutely every thing we're tracking. I'm going to leave this alone for now and maybe come back to it at a later stage.
getPieceInfo could use the following:
whilst this may confiscate the code a little bit, this would pull out all of the ids needed from all the join tables.