@amir5 Limit should always be last in your query together with offset. Like @jussimannisto stated the second is not valid SQL.
However in general the order of you write the SQL doesn't really matter, and in the few cases it does it when you need to fool the optimizer, but the optimizer is most likely much smarter than you are.
When it comes to performance of your queries, indexes is way more important for your performance than any trickery with trying to fool the optimizer to create a different execution plan.
You should use EXPLAIN to analyze what in your queries go slow, and if it does make the needed changes to remove the slowness.