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 (17981,18301,44671,14402,18650,44854,44768,34194,44775,44861,17771,44873,17755,44764,44878,45561,13425,18446,44870,17335,17009,45286,44851,18648,45072,44531,45277,6609,45262,44835,44766,13988,44640,8753,44855,5388,45051,18279,44875,28313,45346,28530,44868,44762,5410,17527,37057,18794,44884,18572,44836,19057,44849,18286,22509,44739,24412,18652,3,17278,18430,44866,44848,16885,17848,36472,44767,44765,17492,45421)
Unknown column 'np.person' in 'where clause'