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 (43800,31354,44835,44640,44865,44766,44685,45262,13,18427,17092,44884,18981,17492,30135,44870,17278,18719,45567,44849,28313,18900,37057,45561,28530,13922,44764,17556,37267,24441,17981,6875,18430,16935,44531,44671,18572,18650,24411,44867,14622,18279,17756,18652,16885,5993,9341,44854,44875,44767,18185,44765,5388,18042,4686,5259,44711,44853,34194,18996,45516,45421,17839,45346,18237,18301,45177,6862,44869,44868)
Unknown column 'np.person' in 'where clause'