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 (10402,17278,18042,45561,45043,18688,28530,18981,37057,18996,18172,17492,18430,44851,4765,45518,13988,17114,6862,17771,44836,17755,17756,45072,45177,18446,45262,24438,45516,32454,44640,17009,5259,17703,44531,44884,44689,45286,45346,44685,44875,18427,44671,13,31354,44858,44768,4686,34194,5410,24412,44868,18650,30986,44835,44837,44894,14622,28313,44739,44861,44845,18719,3,44745,43800,18652,44873,17527,13425)
Unknown column 'np.person' in 'where clause'