Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (45072,45262,45277,44640,17092,17756,44767,18286,17492,17351,31354,45567,16885,17904,44869,44685,44853,44711,44863,18572,17601,44868,17755,44858,17009,18981,3883,24412,45421,9341,44836,45515,28313,17335,44669,45561,32454,8753,17835,44861,17556,18794,13922,18301,45286,17114,16935,44851,17237,44674,18688,24438,30986,39676,37057,18279,18900,17839,5259,34194,18172,44855,3,30963,37267,44671,44856,14622,18648,18042)
Unknown column 'np.person' in 'where clause'