Sorry for my bad english. let me show my data, that would make sense ?
INSERT INTO `news_image` (`id`, `image_name`, `thumb_name`, `image_source`, `image_comment`, `priority`) VALUES
(39, '1259730015.jpg', '1259730015_thumb.jpg', '', 'Real estate agents believe home owners will be prepared for the rise.', 1),
(39, '1259730046.jpg', '1259730046_thumb.jpg', '', 'Bob Packer is unfazed by the rise.', 0),
This is data from the table news_image, as you can see there are two rows with the same id of 39, my query will give back both rows, which is not good, I only need one row, the row where thumb_name = 1259730015_thumb.jpg