Special case the lone asterisk fragment in mysql