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 (13425,45286,30986,16935,30963,24441,17848,45042,19078,44689,17703,45567,18996,44739,44854,17527,18719,17009,18301,24411,17835,24412,17657,17904,30135,17278,16885,18446,44766,9341,17092,10402,44687,17335,18794,43800,45072,45277,17492,5388,28313,6609,17981,45518,5410,18286,13,8753,44848,44870,18279,44669,44671,18572,18427,44845,45561,5259,44894,44863,44765,44711,44640,44884,44768,45262,18237,14402,44866,17237)
Unknown column 'np.person' in 'where clause'