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 (18719,3,18286,17848,44869,17114,45561,30135,45517,44849,45516,44768,17009,45515,18572,18688,44835,45042,44764,6609,5259,44671,5993,44531,44848,44762,18650,44875,44856,24412,13,45277,45518,31354,22509,45177,24411,44765,44861,37267,17335,18981,44894,37057,45262,24438,45229,45567,44689,39676,16935,17278,24441,4686,13425,17755,44867,18652,16885,44711,36472,44870,18648,18794,3883,18172,45072,6875,13922,45051)
Unknown column 'np.person' in 'where clause'