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 (44768,9341,17601,44858,19057,18446,44884,17771,4686,45516,44854,18688,24412,44845,17492,18286,34194,44837,45180,17556,44853,45043,44868,44848,45042,6609,37057,44861,13922,44689,3,45262,45229,45517,44836,18172,17237,44640,18894,18430,44867,16885,17848,6782,44873,17755,14622,45286,17839,17981,13988,16935,17009,45277,36472,18301,14402,28313,3883,13425,45177,44711,44866,18981,44764,44745,39676,44849,24411,18794)
Unknown column 'np.person' in 'where clause'