remvoing additional ; from query