/
public function getCount(){ |
$where = $this->_where(); |
|
$query = 'SELECT COUNT(1) FROM #__yanc_subscribers s '; |
$query = 'SELECT COUNT(1) FROM #__yanc_subscribers s |
LEFT JOIN #__yanc_letters AS l ON s.lid = l.id |
LEFT JOIN #__users u ON s.uid = u.id '; |
if(count($where) > 0){ |
$query .= 'WHERE ' . implode(' AND ', $where) . ' '; |
} |