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 (45561,17492,18650,45072,13,18996,6609,45180,44765,45516,44767,28313,17756,30963,45518,44867,18301,32454,44856,18572,44875,17114,44848,4765,44689,18430,45515,45043,36472,45567,31354,44849,44855,37267,28530,17335,44894,8753,17351,18185,24412,44671,6875,44531,18446,44766,19057,6782,44878,17527,17092,44873,45051,18900,14622,16885,45346,44711,17556,13988,44858,17657,44835,18237,44884,4686,44739,45286,24441,44687)
Unknown column 'np.person' in 'where clause'