i'm having a problem with a php page on my webserver:

> 
> Warning: Invalid argument supplied for foreach() in
>  /home/vyhtpnwt/public\_html/include/main.php on line 12
> 
> 
> 

Line 12 on the page is: 

```
foreach ($conn->query("SELECT * FROM accountType WHERE id=".$accountTypeID) as $row2) {
$accountType = $row2[$lang['dbLabel']];
if ($row2['expirationDays']==999) {$accountExp = $lang['unlimitedExp'];} else {
//expiration date script!
$accountExp = 0;
}

```

Considering that: 

* $conn works properly on other scripts;
* $accountTypeID is populated and it's = 1;
* he SELECT return 1 result;
* fields expirationDays
* $lang['dbLabel'] and $lang['unlimitedExp'] are correctly populated.

what can be the problem?

Thanks in advance for your precious help!!!