fix sql error when getting bug suggestions [Fixes 61326400]