Fix issue with castle

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in/home/traviayu/public_html/s1/Templates/Build/avaliable.tpl on line 291