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,13922,44870,44858,17835,30986,44640,17771,30135,18237,18719,18446,24438,45277,24411,17601,17755,44711,45561,18572,44855,18794,16885,37057,37267,32454,28530,44851,18688,17351,9341,45043,18185,44685,44689,45286,44866,45346,44865,45517,17009,45229,36472,44868,34194,17556,10402,17904,44765,44854,44837,44869,19078,44849,3883,44845,18894,17114,17278,44768,44762,13988,18286,18430,17657,31354,18996,5388,17237,18900)
Unknown column 'np.person' in 'where clause'