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 (6782,17703,6609,45043,32454,18648,18794,45567,18894,19057,4686,18996,24412,45421,44674,5410,44835,44669,24438,22509,44851,44685,44849,45286,18430,13988,44764,17527,44745,18572,45229,8753,17556,44640,45515,18981,44845,3883,19078,18279,17335,44854,30986,18900,44853,44689,18353,28530,17114,28313,17755,17601,6875,10402,44836,13,44767,44878,17756,18652,17092,44711,44868,44687,37267,17492,17657,45072,45517,45561)
Unknown column 'np.person' in 'where clause'