ErrorException [ Warning ]: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given

MODPATH/db/vendor/db.php [ 130 ]

125         return mysql_fetch_assoc($res);
126     }
127 
128     public function fetchOne($query)
129     {
130         return mysql_fetch_assoc(mysql_query($query));
131     }
132 
133     public function e($var)
134     {
135         return mysql_real_escape_string($var,$this->con);
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. MODPATH/db/vendor/db.php [ 130 ] » mysql_fetch_assoc(arguments)

  3. APPPATH/classes/controller/products.php [ 1481 ] » db->fetchOne(arguments)

  4. {PHP internal call} » Controller_products->action_view(arguments)

  5. SYSPATH/classes/kohana/request/client/internal.php [ 132 ] » ReflectionMethod->invokeArgs(arguments)

  6. SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client_Internal->execute(arguments)

  7. DOCROOT/index.php [ 110 ] » Kohana_Request->execute()

Environment