Notice: Trying to get property 'id' of non-object in /home/shemirps/starpage.co.uk/pages/details.php on line 12

Notice: Trying to get property 'id' of non-object in /home/shemirps/starpage.co.uk/pages/details.php on line 15

Notice: Trying to get property 'id' of non-object in /home/shemirps/starpage.co.uk/pages/details.php on line 17

Fatal error: Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'aid' cannot be null in /home/shemirps/starpage.co.uk/classes/DB.class.php:100 Stack trace: #0 /home/shemirps/starpage.co.uk/classes/DB.class.php(100): PDOStatement->execute(Array) #1 /home/shemirps/starpage.co.uk/classes/Ads.class.php(255): DB->Insert('`ads_views`', Array) #2 /home/shemirps/starpage.co.uk/pages/details.php(17): Ads->updateView(NULL, 0) #3 /home/shemirps/starpage.co.uk/public_html/index.php(55): require('/home/shemirps/...') #4 {main} thrown in /home/shemirps/starpage.co.uk/classes/DB.class.php on line 100