This will fix #2309: results from previous SQL request were used.
Authored by: eblot 2005-11-07
Parent: [r2518]
Child: [r2520]