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 (44867,10402,44669,44775,5388,44739,45177,18427,18652,44837,44875,17527,44861,17756,3,19057,44766,44863,9341,45421,44873,18688,17657,44848,44854,44851,18279,44711,44689,24411,45042,17092,18900,6875,44878,17278,44870,17556,16885,24412,45072,45262,18650,44865,18894,4765,34194,30135,18430,45346,44671,45180,16935,17771,5259,17839,44764,17009,44768,44855,14402,45516,18172,45277,30986,13,17237,31354,44765,18185)
Unknown column 'np.person' in 'where clause'