This bug is present when using a refined search in a grid and the searched field (TINYINT SQL Type) contains numbers but in some records that field is empty.
Performing a multiselect by selecting one or more number on the left pane plus the “empty” value, when applying the refined search SC returns a “You have an error in your SQL syntax” error (as returned by MySQL)
For example, this is part of the query SC creates and tries to execute when in the refined search I select both “2015” and “Empty” for the order_date_year field:
… and ((order_date_year IN (2015,) OR …
As you can see above, the “Empty” selection in the refined search causes SC to put a comma and then nothing at the end of the IN list, i.e. there’s nothing after “2015,” and before the closing “)”: