Fixed bug (SQL error) on laboratory checkups report

Signed-off-by: plamen911 <plamen@lynxlake.org>
amend last

Signed-off-by: plamen911 <plamen@lynxlake.org>