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 (45517,18894,17527,18286,45262,17556,45516,45177,45515,34194,44884,44671,44837,44768,14622,44685,13,6609,5410,44849,18427,43800,44687,44851,18353,44870,44875,45567,5388,44866,18172,3883,17703,45043,44669,44856,24441,37057,17092,4686,17351,44855,13922,8753,37267,18981,44845,6862,45229,17492,32454,13988,44836,18042,16935,17601,18900,17756,24412,18648,17278,44764,44835,17771,45286,30135,18719,45051,44767,17981)
Unknown column 'np.person' in 'where clause'