select tbannermagid,tbannerlocationid,fhyperlink, flinktype, fdatatable, fdataid from tbannermag where siteid=$siteid$ and fisused=1 and tbannerlocationid in $tbannerlocationid$