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 (18894,17981,17556,17835,44762,18286,6609,44836,44767,17756,44764,16935,17092,44866,44856,5410,44845,44671,45262,44689,44687,18652,14622,17703,5259,13425,44868,44766,45051,45567,44640,13922,9341,24438,44765,17278,39676,45346,17657,31354,24411,44674,4686,17237,44863,34194,36472,28530,43800,44884,44878,44869,17848,18446,18172,17114,14402,44669,44875,4765,32454,24412,5993,17351,8753,45177,44867,24441,45561,17755)
Unknown column 'np.person' in 'where clause'