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 (44875,44863,45177,44765,45277,44640,28313,45567,37267,44531,45517,44764,17835,45051,44835,44851,19057,44762,6609,45042,32454,45286,17839,34194,44767,18650,18719,18446,44866,28530,44739,16885,9341,44878,45229,17092,45346,24441,13,18688,14402,17981,44884,17756,4686,17335,44775,5388,18172,17278,30135,3883,17601,44685,36472,43800,44856,14622,24438,17114,37057,44671,44745,18427,18894,44868,17351,18237,22509,18042)
Unknown column 'np.person' in 'where clause'