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 (44878,43800,44853,44848,44868,44765,18996,19057,18900,45518,22509,36472,18652,17114,18894,18430,13988,10402,17009,17657,6862,18237,44870,44869,17556,34194,37267,17601,18185,45262,45043,17904,17092,17492,17335,44766,17527,32454,44873,17756,18719,45516,44739,18301,18688,44711,4765,44764,44687,8753,18172,18446,18279,18353,45042,30986,16935,37057,45561,44863,3,45072,14402,44849,18427,44866,6609,3883,44845,44775)
Unknown column 'np.person' in 'where clause'