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 (28530,44867,45561,44766,44863,17756,36472,18648,18688,16885,17835,17848,10402,9341,17351,17657,44849,44854,18446,44845,44835,17492,45180,24438,17114,44767,18981,18894,37267,18430,44674,34194,18301,44685,44875,45177,44837,45043,18279,22509,30963,3883,30986,17527,44894,32454,4686,45421,44866,13988,44853,45516,6862,18900,18286,45229,17092,18652,14622,4765,24411,18172,45517,44836,18237,17556,45277,43800,44669,44687)
Unknown column 'np.person' in 'where clause'