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 (44531,44863,18719,28530,44869,44687,45516,30135,18237,45561,17904,37267,39676,44685,44894,28313,16885,43800,18894,18572,5388,18172,18996,24438,13,17278,44739,45421,6862,44868,44858,14622,44861,44848,17114,18301,24411,30963,18652,24412,44835,30986,17527,4765,45262,3,17492,44853,44640,44878,45517,19078,13425,44711,44865,14402,18794,45515,45043,44689,10402,44884,18446,18286,18981,13988,32454,45229,45180,17835)
Unknown column 'np.person' in 'where clause'