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 (44851,17755,44849,17839,16885,45177,18185,17981,44768,44855,17351,45277,18427,44762,16935,4765,44870,6609,17904,18301,45051,44873,45567,44869,45043,17771,18688,24412,44687,18794,24411,5993,39676,37267,44766,44671,17114,10402,5388,44884,45561,45042,45516,44875,44711,44685,45517,14622,5410,17009,44745,44845,19057,18900,44894,17278,18446,13988,13,44861,17601,6782,18572,44640,18286,8753,24441,44863,18172,44854)
Unknown column 'np.person' in 'where clause'