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 (28313,13922,44768,44856,17335,44858,44863,44849,44766,45051,6875,18237,45516,44894,44837,44851,36472,17835,6609,44762,44835,17756,44868,45177,44689,28530,18427,44845,45262,39676,30963,16885,6782,44866,30135,45286,17237,44848,44765,44873,5410,17527,44674,37267,44853,3,5993,44669,18688,44878,13988,18650,44764,44836,17278,44767,18286,3883,17351,18353,44640,18185,18981,18572,45515,44739,30986,44861,45229,24441)
Unknown column 'np.person' in 'where clause'