I don't know of any scale that would have all the correct notes in any key except the chromatic scale but you have to know your music theory pretty well to figure it out. Also in the major scale the patterns are major, minor & diminished just like a key:
Key:G Major
Ionian - Major - 1 chord - G Major
Dorian - Minor - 2 chord - A Minor
Phrygian - Minor - 3 chord - B Minor
Lydian - Major - 4 chord - C Major
Mixolydian - Major - 5 chord - D Major
Aeolian - Minor - 6 chord - E Minor
Locrian - Diminished - 7 chord - F# Minor or Diminished
You should start on the note G if you're starting with a G chord, that might help. But don't worry about it too much you've only been playing for a year, learning how to solo well takes years of time and practice.