Fixing message API test failures

Summary: - Clarify ambiguous columns in SQL query.

Test Plan: ./bin/behat -c application/tests/behat.yml application/tests/features/api.messages.feature

Reviewers: lkamau, eyedol, shadowhand

Reviewed By: shadowhand

Differential Revision: https://phabricator.ushahidi.com/D213