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 (18042,5410,45229,32454,44855,18996,17237,44671,44849,17601,44848,44875,44863,17839,45042,45043,44836,17092,45262,45421,45286,45177,43800,18652,44767,45516,24438,6875,30986,44766,45051,44685,18430,44869,28530,18719,44884,44739,44689,17009,13988,24411,17492,18279,6862,5993,39676,4686,45518,44868,17703,44775,14402,6782,44640,10402,45561,44870,44674,22509,17527,9341,17835,18650,14622,44853,45346,44745,34194,18894)
Unknown column 'np.person' in 'where clause'