If I remember correctly, this error is usually related to the code segment as follows:
// You probably have some code similar to this $var = mysql_result( $result, 0, 'column_name');
If the query fails, the column or column does not exist. Make sure $result is a valid MySQL resource to make sure SQL is valid, and then make sure you actually get the results from the database before trying to call mysql_result .
Or, even better, using mysql_fetch_array instead of manually retrieving each column value (if you have multiple columns returned from the query).
nickb source share