MYSQL Get Month before When I use interval 1 I got an error in my SQL syntax. I want to get month now -1 to have a month before.

SELECT 
      catalog.code, 
      catalog.supplier,
      catalog.created_at
FROM  catalog 
WHERE MONTH(catalog.created_at) = month(NOW()) - INTERVAL 1
AND   YEAR(catalog.created_at) = year(NOW())
Kindly try the following code :

SELECT 

            catalog.code, 
            catalog.supplier,
            catalog.created_at

       FROM catalog
        WHERE MONTH(catalog.created_at) = month(NOW()- INTERVAL 1 MONTH)
        AND YEAR(catalog.created_at) = year(NOW());


Tried and tested in SQLFiddle: http://sqlfiddle.com/#!9/2f8d3/1/0
Hope this helps !!
Regards.