SELECT * from inventory where hfdcat='3'and subcat='1' and catnr='2' and name='name' ORDER BY datetime DESC