There are provided according to the invention novel compounds of formula (I)or a pharmaceutically acceptable salt thereof: (I) wherein: X represents a nitrogenatom; Y represents -C(H)-, (-C(H)-), -S(O)-or -C(=O)-; Z represents -C(H)-, -S(O)-, -N(R)-,or an oxygen or sulphur atom; A represents hydrogen or -CHOH; Rrepresents hydrogen, Calkyl, Calkoxy, -COR7 or-SO2R7; R represents halogen, Calkyl, Calkoxy,=O, haloCalkyl, haloCalkoxy, hydroxyl or -CHOH;m represents an integer from 0 to 3; R represents halogen, =O, Calkyl (optionally substituted by one or more hydroxyl groups), -COOR,-CONRR, Calkoxy, haloCalkyl,haloCalkoxy or CalkyloCalkyl; n representsan integer from 0 to 3; p and q independently represent an integer from 0 to 2; Rrepresents an -aryl, -heteroaryl, -heterocyclyl, -aryl-aryl, -aryl-heteroaryl,-aryl-heterocyclyl, -heteroaryl-aryl, -heteroaryl-heteroaryl, -heteroaryl-heterocyclyl,-heterocyclyl-aryl, -heterocyclyl-heteroaryl or -heterocyclyl-heterocyclylgroup, all of which may be optionally substituted by one or more (e.g. 1, 2 or 3)halogen, Calkyl (optionally substituted by one or more hydroxylgroups), Ccycloalkyl, Calkoxy, hydroxyl, haloCalkyl,haloCalkoxy, cyano, -S-Calkyl, -SO-Calkyl,-SO-Calkyl, -COR, -CONRR,-NRR, -NRCOCalkyl, -NRSO-Calkyl, Calkyl-NRR, -OCONRR, -NRCOR or -SONRRgroups; R and R independently represent Calkyl,or R and R together with the carbon atom to which they areattached may together form a Ccycloalkyl group; R6 representshalogen, Calkyl, Ccycloalkyl, Calkoxy,haloCalkyl or haloCalkoxy; s represents an integerfrom 0 to 4; R and R independently represent hydrogen,Calkyl or Ccycloalkyl; or solvates thereof.