Puoi usare la funzione LIMIT di mysql