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 (45262,17981,44765,45042,44640,30963,4686,45177,14622,5259,44689,44854,10402,13922,44531,43800,17657,44836,45516,6862,13,17755,18286,44884,17237,44875,24438,44870,45515,18427,44894,44767,44853,18279,17009,36472,44671,34194,18719,18688,37057,19078,22509,18301,13425,39676,45518,44851,16935,17114,44873,18430,4765,44856,17601,28530,18185,45072,44837,18650,37267,44711,44863,5388,17527,17848,44861,13988,44739,24412)
Unknown column 'np.person' in 'where clause'