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 (44640,18900,17351,30986,44865,45517,44854,44836,17703,3,13922,16935,45072,44765,45042,17335,17237,44873,39676,16885,18650,19078,44861,44775,17904,44745,22509,37267,18430,3883,44835,18042,17009,44848,17848,17556,17114,8753,6782,36472,32454,4765,19057,18652,6862,17527,13988,45051,17981,18894,44867,18688,34194,44853,44762,17601,18353,44671,45515,18996,44531,17756,10402,44837,37057,45421,24411,45518,18172,45286)
Unknown column 'np.person' in 'where clause'