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 (18996,16935,17771,44768,45072,17114,18301,17335,44845,4765,18794,17835,44739,44848,45516,5259,17839,18650,44853,18981,18427,6609,45567,18900,18894,44854,17237,24412,19078,17527,36472,44674,13988,44858,37267,30135,45286,3883,45277,43800,22509,18172,17904,44849,44764,17278,44711,44884,45518,5388,28313,44867,13,18719,16885,44640,45177,44866,44870,45051,44531,44873,44837,30963,44835,44863,44669,6862,24438,37057)
Unknown column 'np.person' in 'where clause'