I want to know if the following proposition is true or false :
Let $p$ and $q$ $\in \mathbb Q[X]$ two polynomials of degree $\geq 1$ and let $g$ $\in \mathbb Q[X]$ an irreducible unitary polynomial, with deg(g) $\geq 1$ such that $\exists$ two polynomials $a$ and $b$ $\in \mathbb Q[X]$ with $g = ap + bq$. Then $g = gcd(p,q)$.
I have the feeling that it is true with a few tests but I don't know how to prove it and I feel like something is wrong with the fact that we are $\mathbb Q[X]$. What if we are $\mathbb R[X]$ ?
(I also have that $x-\frac74=(\frac18x+\frac14)(x-1)-(\frac18x-\frac12)(x-3)$ but $x-\frac74$ does not seem to be $(x-1)$ and $(x-3)$'s gcd).