Andhra Pradesh Chief Minister N Chandrababu Naidu on Thursday said he would order a judicial inquiry into the Tirupati temple stampede that left six people dead and dozens injured, besides transferring three senior officials including the district Superintendent of Police.