Grant failed at php type affinity