Removed product_id from db->query(). Thanks @stevangoode for pointing that out!