#1349 - View's SELECT contains a subquery in the FROM clause
MySql doesn't allow you to use subqueries in the FROM clause of a VIEW, eg. the following command will throw an error:
CREATE VIEW myView AS
SELECT s.*
FROM (SELECT DISTINCT name FROM yourtable) s