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 (24441,8753,17009,18185,16935,45567,44863,44873,24438,45346,45043,44878,6609,17335,45042,13425,44858,30986,44868,17703,17278,17527,44775,18353,17657,5259,34194,5993,17492,44640,4686,9341,44766,4765,45072,18446,13988,44856,28530,17351,17904,18172,18286,18237,44689,44851,44669,22509,6875,24411,45561,44865,19057,45051,18894,13,30963,43800,44867,18981,32454,17114,44765,37267,44836,17556,44875,45518,24412,14622)
Unknown column 'np.person' in 'where clause'