A broken query (CREATE TEMPORARY) and an undefined variable
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

Ant59/Elkarte,Spuds/Elkarte,Spuds/Elkarte,StealthWombat/How-to-fork-an-Elk,interlab/Elkarte,Ant59/Elkarte,nwsw/Elkarte,emanuele45/Dialogo,wizardaf/Elkarte,joshuaadickerson/Elkarte2,wizardaf/Elkarte,StealthWombat/How-to-fork-an-Elk,elkarte/Elkarte,wizardaf/Elkarte,joshuaadickerson/Elkarte2,joshuaadickerson/Elkarte2,joshuaadickerson/Elkarte2,elkarte/Elkarte,interlab/Elkarte,nwsw/Elkarte,emanuele45/Dialogo,StealthWombat/How-to-fork-an-Elk,emanuele45/Dialogo,interlab/Elkarte,Ant59/Elkarte,StealthWombat/How-to-fork-an-Elk,wizardaf/Elkarte,nwsw/Elkarte,Spuds/Elkarte,elkarte/Elkarte