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 (3,18279,18652,14402,17092,17848,44669,6875,39676,45421,24441,44849,44768,18353,18981,17904,45516,24412,44745,37267,44865,6862,44765,30135,17839,6782,44878,17237,44858,45286,17278,45051,18719,44873,44835,18301,3883,17527,18688,6609,44674,44837,44894,44836,16885,17755,44766,44869,44767,17835,44868,19057,18172,18427,17556,18650,45517,18894,16935,18430,44685,44863,37057,45567,44845,36472,17009,30963,45518,44856)
Unknown column 'np.person' in 'where clause'