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 (4765,45567,6862,44764,16885,44849,17009,10402,17839,44835,44875,18652,18237,44851,17492,17527,18185,6609,30135,37267,16935,18446,45561,44765,44858,17237,28313,44853,5388,44674,14402,5259,45346,44894,45421,18301,44865,9341,44863,44685,44711,44848,44767,18172,44878,36472,45177,44775,17981,44845,18794,31354,45051,44745,45517,45042,44762,18427,44866,13988,45229,45516,17835,28530,18981,24412,44640,44669,18648,18996)
Unknown column 'np.person' in 'where clause'