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 (44849,44868,44878,18172,45072,18301,17335,44884,45051,13,31354,30963,17904,18794,18446,44854,44894,24438,18996,18353,30135,44745,44768,17114,28313,18279,5388,17492,37267,44858,44848,32454,44869,45180,18286,14622,6609,44739,17839,28530,17351,45286,45567,3883,17237,17756,44767,19057,45277,18894,44853,44836,44687,17657,44671,45346,18688,39676,18237,14402,44875,44873,44835,18981,6782,44856,36472,24441,18427,18650)
Unknown column 'np.person' in 'where clause'