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 (44711,18572,44640,45051,34194,18900,17839,44768,44685,24438,30986,44884,45567,17492,37267,44861,13988,31354,44873,44866,18688,44870,18353,3883,17092,17237,18719,44687,17114,44674,13,44837,44869,18042,43800,44845,3,44865,10402,24411,17703,18981,44762,44868,44835,17335,45277,18237,44858,17848,18430,17278,45561,28313,18185,4686,24441,44836,14402,44765,37057,44767,18996,16935,44848,14622,18894,24412,6782,44775)
Unknown column 'np.person' in 'where clause'