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 (18719,5410,44766,18042,44866,24412,45262,18794,44687,45515,44873,44671,17527,44869,45567,14402,44767,13988,18900,45516,44884,44867,44861,17771,17835,44848,45517,44865,30135,17114,8753,24438,44762,30986,18430,22509,44739,17278,18688,44875,18981,45421,18279,6609,44835,10402,44845,44674,24411,44878,44711,43800,18427,5993,32454,28530,36472,44856,3,45072,45043,17703,17755,44853,44837,45177,31354,17492,44775,18894)
Unknown column 'np.person' in 'where clause'