Brug et alias til returnering af COUNT
funktion:
$countThemes = Singlequery('SELECT COUNT(1) AS num_items FROM items WHERE type = :type',
array(':type' => 'theme'), $conn);
Derefter skal dit array have indekset num_items
i stedet for COUNT(1)
.