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 (44689,6609,44878,19057,44837,17278,17351,17771,17009,44851,45177,45229,17492,44848,44884,45072,45346,44775,18286,18301,18572,44640,18652,18688,45517,18996,24441,17703,45180,44865,17981,18650,18172,17755,28313,44765,8753,44674,44764,14402,14622,6875,17835,44873,18981,24438,22509,44768,18237,44766,44861,45043,45516,13425,10402,37267,16885,44836,17601,18648,44835,44711,44685,13988,17657,45567,44853,17335,37057,18794)
Unknown column 'np.person' in 'where clause'