fixed

reverted manually
fixed most queries. comment-related queries accessed wrong column