Michael  
Shannon  

Warning: mysql_connect() [function.mysql-connect]: Premature end of data (mysqlnd_wireprotocol.c:553) in /usr/www/users/alamo/michaelshannon.com/includes/php_portfolio/random.php on line 5

Warning: mysql_connect() [function.mysql-connect]: OK packet 1 bytes shorter than expected in /usr/www/users/alamo/michaelshannon.com/includes/php_portfolio/random.php on line 5

Warning: mysql_connect() [function.mysql-connect]: mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file in /usr/www/users/alamo/michaelshannon.com/includes/php_portfolio/random.php on line 5

Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in /usr/www/users/alamo/michaelshannon.com/includes/php_portfolio/random.php on line 6

Warning: mysql_query() expects parameter 2 to be resource, boolean given in /usr/www/users/alamo/michaelshannon.com/includes/php_portfolio/random.php on line 14
bad query:SELECT p.id,p.title,p.crop,c.name as catname FROM portfolio as p, categories as c WHERE p.category_id = 1 and p.category_id = c.id ORDER BY RAND() LIMIT 1