definer/invoker of view lack rights to use them
PHP Snippet 1:
CREATE ALGORITHM=UNDEFINED DEFINER=`previoushost`@`localhost`
SQL SECURITY DEFINER VIEW `view_user`
AS SELECT `user`.`id`,`user`.`name` ....
PHP Snippet 2:
CREATE VIEW `view_user`
AS SELECT `user`.`id`,`user`.`name` .....