Correcting for missing indexes in php errs