Hi @improstudios
Have you tried to print_r($catid);
to establish if it contains the correct value? From the code you have shared, I suspect that this could not be containing the appropriate value for ACF to work.
For more info on debugging on ACF, have a look at the following: http://www.advancedcustomfields.com/resources/debug/