board page: fix SQL query format for non-MySQL databases

Regression introduced by 9afe4ca8a170105bd8bca73bec56a068d3739287