If you listened to the mainstream newspapers, from the Times to the Guardian, and pundits from UKIP's own former Express star Patrick O'Flynn to the incomparable Dan Hodges, you would have thought the Oldham bye-election was going to be a bruising breakthrough for UKIP. The death of Michael Meacher had opened up a fatal chink in Labour's working class armour, through which the kippers would charge, by exploiting proper working class discontent with a "poncified" Labour that doesn't even believe in nukes, keeping out the foreigners, bombing Syria and extrajudicial executions of brown-skinned people any more. The workers were thought to be cheering for Hillary Benn, who in this day and age is thought to be both Prime Ministerial material and an earthy, horny-handed son of toil. The media class salivated, slavered, over the prospect of white, racist vengeance against Corbyn's loony left rabble

Labour actually won with 7.5% swing and a majority of over ten thousand. Now, without a trace of sarcasm, how could it be that a glut (for I believe that is the collective noun) of self-satisfied, upper-middle-class pundits, could have failed so badly to understand the working class of Oldham? And how does their evident sense of empathy with the workers square with the typical deference of these same pundits to Blairite and Tory yuppies and flunkies grovelling to the rich? These are not questions that most journalists and pundits are asking themselves. The Mirror seems to have deleted its lead predicting a dark day at the polls, The Times's political reporter simply glosses over the figures, the Telegraph blames Muslims, and the Guardian's Helen Pidd repeats every single cliché of liberal metropolitan writing about the north (in sum, she attributes Labour's success to Asian families voting en bloc, while white working class contempt for Islington elitists was overcome by popular local candidate, etc).

Now perhaps this is to be expected; for our media, wish fulfilment is as good as reporting. Yet the question remains and is more puzzling, the more one thinks about it. The working class Labour vote is a multiracial alliance that mostly cleaves to the left. The evidence suggests that the northern working class is politically as left-leaning as Scottish workers. Meanwhile, there is little evidence beyond anecdotes that workers are desperate for give glorious years of Hillary Benn. So, given that polls suggest most of the country opposes Trident, and doesn't support bombing Syria, why do journalists kid themselves that the proper working class northern Labour voter is going to find Corbyn's anti-war, anti-nuclear stance indigestible? Let me summarise what I think they got wrong.

First of all, they have all succumbed to an ideology of class which is condescending and chauvinistic. They assume that workers lean to the right, because they understand real workers to be fundamentally intolerant, racist, traditionalist, deferential, white, male, older and concerned only with the narrowest horizon of material goods (viz., they took ur jawbs). This way of thinking about class emerged in the 2000s, as part of a backlash against multiculturalism, wherein class could only be spoken of in connection with the term 'white', and in relation to certain ideas of respectability, family, culture and tradition. This melancholic discourse of decline, in which the authentic white working class had been abandoned by liberal metropolitan elites, could have come out of the pages of Spearhead, but it was mainstreamed in the last decade. And it informed the myth, never sustained by the data, that far right parties from the BNP to the English Democrats to UKIP are primarily parties of the 'left behind' working class. That is, the myth that white workers cheated by globalisation and multiculturalism were the primary substrate of British neo-nationalism. In this view, UKIP should be construed principally as a threat to Labour because of its ability to attract white workers with its no nonsense policy of brutalising brown workers.

Secondly, because of this racialised way of interpreting class, they are unable to understand the real psephological dynamics unfolding in core Labour seats. They don't understand that right-wing, white workers constitute a minority, and that they are not the most likely to vote Labour in the first place. They fail to understand what the data shows us (cf the British Election Study) which is that the far right parties, especially UKIP, are far more middle class than has generally been assumed, and that insofar as they do make gains in the working class vote this primarily arises from a realignment of existing right-wing voters, redistributing their votes from the Tories, the English Democrats, or whomever. UKIP's advances in northern towns and cities have come from it energising and hegemonising the right-wing vote. If the Labour-voting electorate are demoralised and passive and the turnout collapses, this could be sufficient for UKIP to win a northern seat one day. But that hasn't happened thus far, and it definitely didn't happen here.

None of this is to say that Corbyn is in a strong position. He isn't. He polls poorly, including among groups whom he should be popular with such as 18-24 year olds. Labour's nationwide polling puts it in the low thirties, while the Tories are in the high thirties. But this just means that Corbyn has failed to reverse Labour's already dismal situation. Labour isn't plummeting in the polls, despite the frenzied media heat, and there was never any good reason to suppose that it was about to fall apart in one of its core seats. Such a core vote meltdown was far a more plausible scenario when New Labour was in charge. There was no bye-election polling carried out and nothing more than anecdotes to sustain the hypothesis that Corbyn was facing such a disaster. The whole scenario was a bit of dreamwork, staging a bourgeois media desire for, as I say, the firm smack of white backlash. Tough shit this time.

Parliament has voted for war, with a sizeable majority for the government's side, with an estimated 67 Labour MPs rebelling against the leadership. At least part of this is a result of the weakness of the parliamentary opposition to war. While Labour's right-wingers partially wanted to use the war to shaft Corbyn (particular dishonour goes to Hillary Benn, who shamelessly invoked the International Brigades), the opposition leader and his allies were ideologically weak and made a crucial political mis-step in allowing a free vote. It's galling to think that Miliband was actually far more effectual, causing the Tories a major crisis at the time, than Corbyn has been, and it indicates something about the strategic dilemmas posed by trying to rehabilitate the left from within a parliamentary context. Nonetheless, we're about to go to war, on Cameron's terms. Why?

Of course, the UK is already bombing Syria, as it is bombing Iraq. And this fact is itself part of Cameron's case for war. As he explained, "it is working in Iraq" and so it will probably work in Syria. So what is his mission? To "degrade ISIL and reduce the threat they pose".

Please note the incredibly obvious evacuation of meaning in this appeal. 'Degrade' and 'reduce' Daesh? One is reminded of the rationale given for Clinton's bombing of Iraq in 1998, viz. that it would 'degrade and diminish' Saddam Hussein's weapons of mass destruction and his ability to threaten his neighbours. Even if Hussein had still been in possession of such weapons, this rhetoric was meaningless. You can arguably 'degrade' just by breaking a window. You can arguably 'diminish' just by decapitating a passing teenager. These are not precise objectives.

On the subject of Iraq, is it in fact, "working" there? I don't think we should be under any illusion that the superior firepower of the US and its allies, tied to ground forces, can militarily defeat Daesh. And the evidence is that Daesh has lost territory and important supply routes, its footprint is shrinking. Most of these losses in Iraq have not come about through bombing, but rather through the exertions of the Iraqi Army and Kurdish peshmerga. (This is why there is so much emphasis on Cameron's claim that there are 70,000 fighters in Syria ready to support and coordinate with a bombing campaign.) Yet, as in all such wars, the dominant axis on which these matters are settled is political rather than military. And in that light, we have to think about why such gains as are made often seem to melt away astonishingly quickly.

After all, the Sunni triangle was lost to the Iraqi army for a reason: because the government of Iraq has no legitimacy there, having expended all of it in waves of sectarian repression and persistent, structural exclusion. Nouri al-Maliki, under US tutelage, consolidated a sectarian power base in the south of Iraq, while systematically moving to repress and marginalise non-sectarian Sunni opponents. Mass protests in Sunni areas produced no change in policy, and in fact protest was met by torture and executions carried out by Shia death squads. Maliki was elected on a platform nominally committed to opposing sectarianism and the fragmentation of Iraq, but evidently saw no compelling reason to reverse the patterns established since 2003. So, even if the Iraqi army was able to recapture Ramadi, there is no good reason to think they would be able to keep it. It would be something, at least, if there was a sincere Iraqi nationalism aimed at preserving the unity and integrity of the state, but that doesn't even appear to be the official doctrine in Baghdad. And it doesn't strike one as obvious that their soldiers should think of dying just so that Maliki and his patrimonial allies can hang on to another piece of territory. It is for this reason that the fragility of the Iraqi Army is often contrasted with the relative discipline and cohesion of Daesh (who are, to be clear, a motley assortment of ultra-reactionary Islamists, secular Ba'athists, and jihadi tourists).

If we prioritise the political analysis over the military analysis, it becomes easier to understand how this has happened, how Daesh has been able to significantly increase its global recruitment in the context of the bombing campaign, and how it might continue to metastasise globally even if it is deprived of its present territorial resources. This should be borne in mind each time Cameron or a pro-war MP says that the question is whether we fight them here or over there: the answer is that you'll be doing the former more on account of the latter. It also puts the question of 'civilian deaths' in its correct context. This is not only a humanitarian issue - and we should be wary of allowing it to be reduced to such, as the ruling class often proves fairly adept at neutralising and manipulating humanitarian sentiment which isn't appropriately politicised. The murder of large numbers of residents of large population centres by aerial bombardment is, in this context, in this world, precisely what is most likely to galvanise support for Daesh. And it is clear that in Iraq at least, they do enjoy some support.

But Cameron argues that the bombing of Daesh in Raqqa is part of a wider, sophisticated strategy in which, through political pressure and international dialogue, a "new government" will be brought to power in Syria. Leaving aside, for the second, all arguments about the merits of such a policy, the idea that bombing Daesh-controlled population centres in Syria is an essential aspect of relieving Assad of power is absurd. Even if the stated goal of 'degrading' and 'reducing' ISIS suddenly acquired some sort of urgent precision, even if Daesh started to concede territory rather than consolidating their dominion, it is not obvious what effect this would have on the balance of power between Assad and the Syrian opposition, or upon the diplomacy. It is quite possible that Assad would be the major beneficiary by using his superior military clout to take the vacated territory. Notably, this is exactly what has happened as Assad, backed by Russian military clout, took towns near Homs from Daesh - they began to use that territorial gain to escalate the offensive against the opposition in Homs. That leads us to another aspect of the war, which is precisely the Russian intervention on behalf of Assad. There is thus far no sign that this will abate. Indeed, if a new bombing campaign begins and the stakes are raised, it is likely that Russia will intensify its bombing of opposition-held territories. Indeed, there are already claims - denied by the Kremlin - that Russia has despatched ground troops.

So given that there is no apparent commitment to entering into military combat either with Assad or with his Russian backers - and I think that is a good thing - it is not obvious what kind of military yield is expected. There is unlikely to be any kind of convincing breakthrough that will validate the campaign any time soon, and it seems that before long the question of ground troops will be posed.

We are still, then, left with the question we began with. The explicit rationales offered for the bombing campaign plainly make no sense, and the government's propaganda looks incredibly shaky around it. It seems to me that there is a logic to the bombing, but it has far less to do with Syria than it does with: i. the calculus of consolidating the Conservative leadership in parliament, reversing the setback in 2013, and weakening the opposition (which, mission accomplished); ii. the domestic politics of putting any potential anti-austerity alliance centre on the Corbyn-led Labour Party on the back-foot; and iii. the geopolitics of augmenting the global prestige of an imperialist military. This can be done in a low-cost way (the estimated tens of millions of pounds cost being insignificant in government spending terms), and in an era when the government has been significantly cutting the military budget. It is also easy to effect, as the bombers will simply be diverted from their existing missions in Iraq as of tomorrow.

It is not that imperialist states would not have good reason to want to destroy Daesh. Of course they do. They don't appreciate massacres in their major cities, and the US doesn't feel like ceding a big chunk of Iraq, which they expended a lot of blood and treasure to get control over, to the jihadis. It is just that the bombing campaign is peripheral to that objective. The problem is political. The reason Daesh could take control in parts of Iraq is because of the pathologies of a sectarian state. The reason it has ground in parts of Syria is because of a civil war in which Assad, backed by Russian imperialism, is massacring the opposition. Neither problem is amenable to this bombing campaign.