I have this error below on a site I am running. I don\'t understand why is that as it works fine on my localhost. Is it something to do with the host? I am on an Unix server
For what its worth I wanted to include a situation I ran into where I received this message due to an incorrect placeholder:
$sql_str = 'SELECT prod_id FROM ' . $this->table_name["product"] . ' WHERE prod_sku =:p_sku';
$arr[':prod_sku'] = $s_sku;
In addition I was doing a large number of queries. I suspect that the error compounded with the large number of queries caused this issue. When I fixed the query the connections issue when away.