select * from log where (server_id=:server_id1: or server_id=:server_id2:) and log_timestamp :comparator: :timestamp: order by log_id desc limit 0,:limitcount:;