Update AssetsController.php

Fix invalid SQL