Error 500

Trying to get property 'pro_name' of non-object