Fix

* The ping query will always return a $ping[0]['ping_id']. It will be NULL if nothings found.