MySQL Query only returns value based on 1st value in parameter string

MySQL 5.1.59
I am trying to select data in a query using another query for the parameter and the correct data is not being returned.

Select id from Table2 where id in(Select memberid from Table1 where id=43);

But when I run it only the very first value in Table2 is returned. i.e. 575

Can anyone tell me why this is happening and what I can do to change it?

CREATE TABLE `Table1` (
  `id` int(3) NOT NULL AUTO_INCREMENT,
  `memberID` varchar(300) CHARACTER SET latin1 DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=latin1$$

ID      MEMBERID
24      563,568,566,565,561,466,567,572,571,100,564,560,573,562,569,570,
25      561,564,560,569,570,
31      561,560,569,570,
43      575,563,576,568,565,566,561,567,572,573,577,


CREATE TABLE `Table2` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `PROJECT ID` bigint(20) DEFAULT '0',
   PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=579 DEFAULT CHARSET=latin1$$

100      26
466      17
560      26
561      23
562      26
563      23
564      22
565      24
566      25
567      22
568      17
569      17
570      22
571      17
572      17
573      17
574      17
575      17
576      17
577      17
578      17
NemetonaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

IrogSintaCommented:
Try this:
Select id from Table2 where InStr((Select memberid from Table1 where id=43), id)>0;

Ron
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
NemetonaAuthor Commented:
Thank you so much, it exactly solves my problem.
0
IrogSintaCommented:
Your welcome.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.