You really need to visit a music shop, and try out a lot of guitars. Read a guitar buying guide first (google), or bring a guitar expert with you. Most importantly make sure the neck is straight (if it's ghey, dont buy it). If you find a guitar that you like, but the intonation is screwed, then have the store fix it for you, and if it's still screwed then don't buy it. Play the guitar and listen for bad sounds as you play up and down the neck. Shake the guitar and listen for rattling noises that indicate loose parts or wiring. Basically go over the guitar with a magnifying glass for flaws. And don't buy it the same day, but come back the next day and if you still like it then buy it. It's so easy to rush out and buy the first guitar you see, but my advice is take your time. Don't go to a store knowing that you'll buy a guitar, or it may end in tears.