Okay...Interesting for me... As I told you, My SQL db was a copy from ms access db...Dont know what happened, but mysql database tables dont have primay key or index although original db has have them...I tried asigning PK and indexes, but mysql returned me error, My final solution was
- Delete thetable in mysql
- Make sure PK is asigned in table structures ( In my cases, after importing from MS-Access, I have to do it again)
- Check indexed feilds ( I have one feild indexed), and make sure index exists
and this did the trick for me, Now the same query is running okay...
thanks to all for the help...Hopes These two steps might help someone in future...