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 (44836,18794,8753,17527,17237,17335,45567,28313,45421,16935,13425,44640,9341,18279,13988,44669,45177,45051,45286,17981,18172,18446,45042,30135,10402,17114,17092,19057,43800,45277,44849,18981,17009,45516,44845,18652,44848,17492,17771,45043,45518,3883,18286,6782,4765,17556,5410,28530,17351,44854,31354,18688,24412,45229,24411,44764,18353,44835,44867,44775,45180,44767,44873,13922,44884,44865,34194,39676,17657,44869)
Unknown column 'np.person' in 'where clause'