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 (18237,18042,44766,18981,17527,18286,18172,44853,18650,16885,37267,14622,13,44835,44867,44858,45262,44845,18430,44848,17848,44765,45421,4765,44870,31354,44836,32454,17839,44868,45072,24441,18446,17237,45346,18794,4686,16935,44851,18185,44531,44775,13922,34194,44873,45567,30986,18353,17981,18894,18719,44875,28313,44861,18279,17335,18572,30135,17657,14402,24438,45177,17556,44711,17703,5388,37057,44669,44878,45516)
Unknown column 'np.person' in 'where clause'