Forcing CodeIgniter to show 404 page instead of any other error like 1064
You can force 404 with the method
show_404();
This will show 404 when u want it. In your case just catch your error and use this function.
Or you can set custom error handler, log it and display 404, thought i wouldn't recommend doing that.