public static function CategoriesWithId($id) { $id_int = (int)$id; $where_clause = "C.id = ".$id_int; return Category::AllObjects($where_clause); }