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 (30135,45180,17771,44866,13922,44775,17278,44836,37057,44739,44671,45229,45518,44884,44531,18652,18172,17351,45177,44868,31354,44869,18572,17981,18446,22509,6875,24412,45262,16885,17492,32454,45286,17114,13,3883,14622,44849,45516,24441,6609,44870,44865,18688,44764,4686,18301,30986,28313,17848,45421,45561,45567,45517,28530,9341,44669,45043,17335,18900,44687,45051,44854,18719,8753,45346,17601,44674,44640,13988)
Unknown column 'np.person' in 'where clause'