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 (44775,5410,5993,17756,18981,30986,18650,17237,18996,44711,18042,4686,10402,17351,44868,45072,18794,17981,30963,6862,16885,16935,17114,44671,18894,17527,17904,32454,13425,17092,5388,45561,44531,44766,17848,44865,44867,22509,45516,43800,44853,17657,37267,14622,44845,45286,17771,44767,18430,24411,17278,36472,18652,44640,44849,6875,34194,44848,45229,44835,45042,45277,18301,45177,28530,13,44894,45180,18172,17835)
Unknown column 'np.person' in 'where clause'