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 (44674,31354,44687,10402,9341,16885,18185,44745,17114,17492,44884,37267,17335,34194,18719,44767,45177,30135,43800,18650,5410,30986,6782,45421,18894,44762,13425,44837,45051,16935,18652,17835,24411,13988,44685,14402,17756,18794,44855,45517,4686,45180,14622,4765,44640,44869,45262,44845,28313,45072,45515,44766,18900,19057,17657,17755,44849,32454,44835,45518,44764,17601,44894,44853,45516,44868,18042,44768,13,18286)
Unknown column 'np.person' in 'where clause'