The following does not work with my custom table:
$wpdb->prepare("UPDATE $wpdb->jch_gigs
SET available = available - %d
WHERE ID = %d", $quantity, $item) );
But this does:
$wpdb->prepare( "UPDATE jch_gigs
SET available = available - %d
WHERE ID = %d", $quantity, $item) );
What am I doing wrong?