Bug
FYI, this is a repeating bug when using Count...
<?php
$slidesPresent = new WA_MySQLi_RS("slidesPresent",$rtk_i,1);
$slidesPresent->setQuery("SELECT `Count(tblslideshow`.`slideID)` AS CountslideID FROM tblslideshow WHERE tblslideshow.parentID = ?");
$slidesPresent->bindParam("i", "".(isset($_SERVER['$id'])?$_SERVER['$id']:"") ."", "-1"); //WAQB_Param1
$slidesPresent->execute();
?>
Notice the single quotes are not wrapping the parameters properly.
`Count(tblslideshow`.`slideID)`
Should be
Count(`tblslideshow`.`slideID`)