The invention provides a compound which is (a) a thiophene carboxamide derivative of formula (IA) or (IB), or a tautomer thereof; or (b) a pharmaceutically acceptable salt, N-oxide, hydrate or solvate thereof, wherein L1, A1 and W are as defined herein. The compounds are useful as IKKβ inhibitors. The compounds can thus be used in medicine, for example in the treatment of autoimmune and inflammatory diseases.