Hi,
Here is information for readers of this thread:
The web part used a custom method for finding one value. If you need to query database you can use following code for example:
public string GetOneValue(string strQuery)
{
GeneralConnection genConn = ConnectionHelper.GetConnection();
object[,] parameters = null;
string someColumn = genConn.ExecuteQuery(strQuery, parameters, CMS.IDataConnectionLibrary.QueryTypeEnum.SQLQuery, false).Tables[0].Rows[0]["SomeColumn"].ToString();
return ValidationHelper.GetString(SomeColumn,"empty");
}
There was another issue in query definition - missing space in the query.
Best regards,
Ivana Tomanickova