SELECT SQL_CALC_FOUND_ROWS * FROM categoria_axenda INNER JOIN axenda ON categoria_axenda.id_axenda = axenda.id_axenda INNER JOIN axenda_idiomaweb ON axenda.id_axenda = axenda_idiomaweb.id_axenda WHERE axenda_idiomaweb.id_idiomaweb = '1' AND categoria_axenda.id_categoria = '321' AND axenda_idiomaweb.activo_axenda_idiomaweb = 1 order by axenda_idiomaweb.fecha_inicio_axenda_idiomaweb ASC LIMIT 0,12