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 (45567,28530,19057,44845,18900,44870,6609,44875,5410,17703,44867,44739,45421,17771,44531,45262,44674,44764,45561,44894,6875,18446,44878,13,18688,37267,44836,45516,17657,45286,18185,3883,18301,22509,18237,30963,18172,44848,44689,44884,18996,17335,17009,44854,18981,18652,45051,30135,31354,44766,6782,44868,44685,8753,17556,44869,44775,18286,16885,17492,17278,24412,44767,18572,45517,3,44851,18430,17835,44711)
Unknown column 'np.person' in 'where clause'