Operand data type bit is invalid for max operator

Fixed my issue. One of my columns was causing the issue, but it may not be required. Thanks all for the help.