Get list of topics pinned globally

This gives this error when ran:

PG::SyntaxError: ERROR:  syntax error at or near "{"
LINE 9: {"query":{"id":12,"sql":"SELECT id, title, user, category_id...
        ^