First off God is NOT all knowing and says so himself:
GOD: ""I, the Lord, will go down and see if what they have done is as bad as the outcry that has reached me. If not, I will know" (Gen. 18:21).
God is NOT all powerful!
GOD: "the Lord was with Judah; And he drove out the inhabitants of the mountains; but could not drive out the inhabitants of the valley, because they had chariots of iron" (Judges 1:19).
But God promises us he answers all prayers!
•(a) "Ask, and it shall be given you; seek, and ye shall find; knock, and it shall be opened unto you: For every one that asketh receiveth; and he that seeketh findeth; and to him that knocketh it shall be opened"--Matt. 7:7-8, Luke 11:9-10;
•(b) "Whatsoever ye shall ask the Father in my name, he will give it you"--John 16:23;
•(c) "And all things, whatsoever ye shall ask in prayer, believing, ye shall receive"Matt. 21:22.
Additional verses are: John 14:12-14, John 3:22, Mark 11:23-24, and James 5:15.
In order to counteract the patent inaccuracy of these premises, apologists seek modification through James 4:3 and 1 John 5:14. The former says, "Ye ask, and receive not, because ye ask remiss, that ye may consume it upon your lusts." In other words, the reason the prayers of the sick, the old, the infirm, the afflicted, etc. have not been answered is because they were based on lust, greed and other selfish motives. It's hard to believe even hardened apologists really believe this. On the other hand, 1 John 5:14 ("...if we ask anything according to his will, he heareth us") represents a more subtle ploy. Prayers are not answered because they do not comply with God's will. The problems with this explanation are: •(a) the earlier verses said nothing about God's will or the need to fulfill His desires, and
•(b) judging from many prayers which people feel were answered, one can't help but question God's morality. Praying, for example, that one's relative will die in order to inherit his wealth and having your wish materialize, does not speak well for God.