From http://cameronspear.com/blog/get-a-single-value-from-mysql-database-in-one-line-of-php/