select DISTINCT(cctv_id), cctv.[name] from points_cctv left join cctv on points_cctv.[cctv_id] = cctv.[id]
points_cctvwhereのレコード数をカウントpoints_cctv.[cctv_id] = cctv.[id]し、これを上記のクエリの追加の列として表示したいと思います。挿入count(points_cctv.[cctv_id])すると、1行だけ表示されます。