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 (22509,13922,18279,24438,44835,17771,17981,44674,44858,17556,17237,18430,45567,43800,34194,18286,19078,37057,18652,45421,44869,44745,9341,44711,13988,14622,18446,45346,24441,6782,24412,39676,17703,28313,18427,17335,44640,18794,10402,17527,45072,45286,44685,16935,17657,17492,44854,3883,18996,44894,18650,44875,18719,44873,18301,18185,30986,44764,28530,32454,44856,18688,17848,18894,44870,13425,44837,18900,44687,45229)
Unknown column 'np.person' in 'where clause'