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,17092,44766,24438,17492,5259,24411,17657,44767,44851,32454,18446,22509,17278,45518,44845,34194,45042,44848,6782,44689,10402,44884,45286,3,17981,45516,45177,6609,45072,18237,18286,17839,18042,44768,44836,37057,17114,44687,44854,17527,43800,45346,18279,18900,28530,44873,18894,44674,44764,17237,45277,44837,44855,8753,17351,13988,44685,18430,18719,45180,44875,4686,44868,18794,17009,44867,14622,44863,44745)
Unknown column 'np.person' in 'where clause'