Solar farm consultation breached planning laws and should be re-run, says MP.