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 (17335,44866,18237,16935,14622,44674,44767,5259,44878,30986,17114,44739,44870,44766,18648,16885,45286,6862,17771,18353,44845,45346,44856,6782,43800,17755,13922,44531,45042,24438,44768,44669,3883,45277,45229,44867,28313,18572,10402,6609,44868,37057,24411,44765,34194,44863,45515,44854,45518,18446,4686,17657,24412,44837,45561,18650,8753,19057,44858,45051,18652,17527,44865,44835,17839,37267,17237,17848,44764,30135)
Unknown column 'np.person' in 'where clause'