Fixed bug #5055: SQL problem with reviewstate in EM (thanks to Franz-Xaver Koch)