Prevent posts assigned to sub-categories being accessible also through top category URL

Prevent posts assigned to sub-categories being accessible also through top category URL

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)