function query($table = '_', $alias = null) { $bt = debug_backtrace(); $comment = sprintf("%s:%d", basename($bt[0]['file']), $bt[0]['line']); $query = new Query($table, $alias ? $alias : substr($table, 0, 1)); return $query->comment($comment); }