Does your query produce an error message, hang, cause blue smoke to come out of the server, or something different when run in your Linux environment? The fact that the query does run under Windoze is significant, since that means that the query is syntactically correct and will run under some version of MySQL.
There are lots of ways that your query can "not run", each way with significantly different causes/solutions!
-PatP