Faça uso da função Agregada
SUM
e os agrupou de acordo com invent_id
. SELECT invent_id, SUM(`order`) `Order`
FROM tableName
GROUP BY invent_ID
cláusula GROUP BY
SUM
e os agrupou de acordo com invent_id
. SELECT invent_id, SUM(`order`) `Order`
FROM tableName
GROUP BY invent_ID