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 (28530,18894,45516,3,17839,44855,45286,44711,17703,44836,24438,44866,44640,5410,17527,18688,8753,10402,30986,18430,18286,45346,44856,30135,17492,45072,17657,13922,37267,17009,44767,44739,44845,24412,17848,24441,18353,18652,44775,17278,18650,44853,19078,45421,44745,44768,18279,17755,44849,44851,13,14402,44854,44861,45515,17335,45561,22509,45518,18996,17756,17114,45277,28313,24411,44837,5388,44870,34194,18572)
Unknown column 'np.person' in 'where clause'