General fixes

Signed-off-by: Suki <suki@missallsunday.com>
Doh! I forgot to add the master setting...

Signed-off-by: Suki <suki@missallsunday.com>
Gotta check the id_post_group row too

Signed-off-by: Suki <suki@missallsunday.com>
Silly sql error...

Signed-off-by: Suki <suki@missallsunday.com>
replace is not null with > 0

Signed-off-by: Suki <suki@missallsunday.com>
Moar silly typos..

Signed-off-by: Suki <suki@missallsunday.com>
Moar logic

Signed-off-by: Suki <suki@missallsunday.com>