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 (18652,5259,45516,44866,44867,18237,14622,45518,45177,30986,44868,44851,45346,44870,45517,18688,44865,45277,45561,32454,44674,45072,18286,6875,13988,44861,18430,17601,4765,44894,44762,17756,17237,18042,45042,44764,44878,10402,13922,17835,44767,18894,17755,18353,44835,6609,24441,44739,6782,17335,18301,18996,6862,45515,44863,44869,44531,44685,44687,17009,44853,9341,43800,44884,44711,28530,18650,17556,17527,13425)
Unknown column 'np.person' in 'where clause'