CLIFTON PARK, N.Y. — State police say a 22-year-old upstate New York man picked the wrong parking spot to smoke marijuana.

Troopers say Ryan Law of Gansevoort, New York, was scheduled to attend a victim impact panel Tuesday at the town court in Clifton Park, an Albany suburb. The court is housed in the same building as a state police barracks.

Police say Law parked his car in front of the barracks in a parking spot marked "Police Cars Only." A uniformed trooper unloading his patrol car nearby spotted Law and approached him to discuss his choice of parking spots.

That's when the trooper smelled marijuana coming from Law's vehicle. Troopers say they found about 30 grams of pot in his car.

Law was ticketed for marijuana possession and ordered to appear at the same court next week.