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 (44674,44687,6862,44837,44764,17703,45277,32454,44868,45229,44845,18981,44858,45518,17904,44865,36472,45421,18900,37057,18042,45516,45567,19057,17981,8753,19078,44531,13988,44856,44711,44851,5259,24411,45346,17237,18286,44878,44765,44855,45051,45286,45042,3,3883,22509,18427,44848,17335,45177,17848,17601,18172,17771,44836,30986,44775,17492,44669,44853,18652,44849,13922,44870,30135,44884,16935,44766,34194,31354)
Unknown column 'np.person' in 'where clause'