{loop sql="select * from {$pre}qq where is_lock=0"} {/loop}
QQ {$r.title}