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 (6782,8753,45421,5259,18894,45262,3883,34194,45346,44671,44767,17601,45516,44687,17351,44865,17278,18446,6862,17904,44764,6609,14402,44531,13988,13,44640,17839,18900,17009,18648,45051,44853,16935,28313,44873,44866,17703,45229,37267,24438,45180,17335,45515,44762,44863,18688,4686,44894,44835,24411,17756,37057,5388,45567,44884,18301,44836,44845,44878,44849,5410,44861,6875,45072,39676,45277,45517,17755,44848)
Unknown column 'np.person' in 'where clause'