Fixed issues that arose from Laravel 4.1, specifically using the SQL keyword AS. Whenever searching it caused a SQL error.