Oh, I see now, it's a coding issue in the original script (I've got no idea how it ever ran properly). The 'and' clauses are being built up into an array and then want to be stringified for use in the SQL query.
The correct PHP function to use is implode, like this:
Code:$db_category_where = " WHERE ".implode(" AND ", $where_array);


Reply With Quote
