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 (45286,14622,45042,44884,44685,45072,18353,28313,24441,44875,6782,37057,13922,18446,45180,44873,4686,17755,17114,44765,44762,44863,44640,17278,17839,44671,44849,18172,17601,44687,45051,44837,31354,24412,45567,44870,32454,17092,18572,45277,3883,44764,30135,44531,44856,43800,17237,17835,17009,14402,18237,44858,44851,17703,6609,36472,8753,45561,17904,45517,9341,16935,18794,17771,19078,37267,16885,18652,17335,18648)
Unknown column 'np.person' in 'where clause'