Hey, in general +1 by reading and testing, though I'd change: + t3lib_div::debug($data, 'tables ' . $from_table, 'DB SQL EXPLAIN'); to + t3lib_div::debug($data, 'tables: ' . $from_table, 'DB SQL EXPLAIN'); (yeah, i know, nitpicking ;) but I think it looks nicer with the colon) Susanne