Fix #1133 by Alex300
Fix #1135 by Alex300
Added hook for comments count query, closed #1141
Fix #1143 by Alex300
Fixed #1148
Fixed #1154
Fix #1157 by Alex300