select * from :table: where server_id = :server_id: and type = :type: