Could not successfully run query (Select *, DATE_FORMAT(timePosted, '%m.%e.%y %h:%i %p') as lastupdated, DATE_FORMAT(published, '%m.%e.%y %h:%i %p') as created FROM photo WHERE visible=1 ) from DB: No database selected