Hey everyone,
I need to retrieve a sum of last 3 votes of a table. I tried limiting the results in my subquery but that doesn't seem to limit:

Code SQL:
SELECT links.id, links.title,
	(
	 SELECT SUM(ratings.VALUE)
 	 FROM ratings
	 WHERE ratings.link_id=links.id
	 ORDER BY ratings.id DESC
	 LIMIT 3
	) AS rating
FROM links
WHERE links.id=20
 
// TABLE Ratings:
id 	link_id  VALUE
1 	20 	 1
2 	20 	 1
4 	20 	 1
8 	20 	 1
14 	20 	 1
 
// RESULT:
id 	title 	rating
20 	linkA 	5
 
// Expected:
id 	title 	rating
20 	linkA 	3

Could someone give me a hand with this?
I tried other ways but this was the closest I could get.

Thanks!