A broken query (CREATE TEMPORARY) and an undefined variable

Signed-off-by: emanuele <emanuele45@gmail.com>

Conflicts:
	sources/controllers/Recent.controller.php
	sources/subs/Recent.subs.php