$sql = "SELECT * FROM $this->table_name WHERE FIND_IN_SET('$subCatString', moto_type_id)";
if($limit>0)
{
$this->db->limit($limit, $offset);
}
return $this->db->query($sql)->result_array();
codigniter limit 関数が $this->db->query($sql) で機能しない