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 (28313,17755,17335,37057,44768,44669,45517,44894,4686,44873,6609,44687,18286,37267,45262,45567,44766,16885,44685,18648,44884,44835,16935,17756,17657,45277,44531,13988,17556,17904,44674,4765,17601,18042,18688,44870,6782,8753,19057,45229,44848,44853,17092,44868,44739,44856,32454,14622,44875,45561,5993,13425,19078,18794,44711,18353,13,44836,18185,24441,18427,24412,45286,18652,5410,3883,18572,17771,44837,44762)
Unknown column 'np.person' in 'where clause'