Error 500

Trying to get property 'rep_title' of non-object