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 (44861,18427,6875,44848,44531,30986,44711,18688,10402,44766,17839,39676,34194,18172,18185,19057,18572,24438,18981,45180,44687,18794,13,17335,44745,45051,22509,45177,18650,45421,4765,3883,16885,45518,17351,44835,17755,45042,44739,44866,13988,24441,30135,44775,14402,44873,44845,13922,44640,18996,45346,44853,44768,45262,45561,44764,17981,44851,45043,18894,44875,28530,5388,24411,16935,17237,18652,5410,37267,18042)
Unknown column 'np.person' in 'where clause'