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 (44865,18430,31354,44836,6875,4765,44884,44766,18353,17755,24438,43800,24411,17771,17237,18237,44711,32454,44768,44868,44875,17335,17351,44669,45286,28313,17657,18688,18794,17492,44640,45277,45346,18185,44863,17703,45421,13,44745,45043,45516,18446,18981,44671,44854,16935,17556,18996,45072,45180,6782,14622,44855,13988,18279,44869,44853,18650,18042,17092,44689,17756,44873,34194,4686,17904,45561,17835,45229,24441)
Unknown column 'np.person' in 'where clause'