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 (44671,37267,45229,37057,4686,18652,17904,6782,18572,34194,44870,8753,44873,17527,31354,44531,44762,44766,44837,44669,18446,44894,6862,44765,18353,24411,9341,18648,17009,18427,13425,5410,45346,44849,44674,3883,17492,44687,18981,17237,5388,30986,44853,43800,24438,17839,44868,45177,13988,45421,44768,16935,18650,44856,36472,18688,13,30135,17981,44845,17335,44739,18185,6875,44848,44865,30963,44640,45567,17114)
Unknown column 'np.person' in 'where clause'