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 (43800,17237,44836,17848,44861,44762,18185,6609,18900,18446,24411,44766,36472,44685,24412,18650,45346,45561,44869,14402,17335,18794,17492,44845,44689,37267,45516,44854,18042,17114,18172,44531,32454,44868,44739,22509,18279,18894,44711,44873,44835,18996,45517,13,18648,45043,45229,44765,17009,44867,24438,34194,18237,10402,37057,17839,17601,31354,17771,18301,44884,18981,18427,24441,18286,17835,39676,18652,44853,17556)
Unknown column 'np.person' in 'where clause'