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 (39676,17237,44875,44711,44768,44835,24411,4765,17527,17009,24438,44767,44873,13425,45518,18446,13922,36472,44766,14402,18301,44762,45516,44671,17835,9341,44853,18279,24412,44745,16935,45042,45051,17114,44868,44640,6862,44870,44836,18353,45043,18794,44866,45262,44856,44837,45517,44848,18430,34194,44851,17492,43800,44884,30135,5388,18981,45567,44531,17848,31354,44865,44867,45561,44863,18688,22509,18652,44775,19057)
Unknown column 'np.person' in 'where clause'