Better SQL error handling
Small syntax updates
Fixed blog model
PHP strict
Merge branch '3.1' into 4.0

Conflicts:
	models/Blogs.model.php
	models/Comments.model.php