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 (22509,44870,18279,24411,44674,17771,44745,45516,18237,44764,36472,28313,43800,44835,8753,13425,17335,28530,44868,44861,17756,44669,17114,44884,45421,44856,13,45043,44853,45229,45262,3883,32454,44878,14402,44685,5410,17527,17601,37267,18981,18042,44836,39676,18719,44689,44765,24412,44762,44711,6609,44855,18688,17092,18652,44863,18650,44739,6875,18900,44767,18185,44865,18286,45072,17835,44845,18427,44531,45180)
Unknown column 'np.person' in 'where clause'