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 (18794,18185,18279,44640,14622,5993,17601,44867,18172,44870,44767,45518,24412,3883,13,18650,30135,18719,45072,39676,17335,44766,45177,44765,18427,17835,5259,6862,22509,30963,44768,44837,17492,45421,24411,17278,44878,18572,16885,44858,30986,44531,44836,13425,44868,44739,18981,18042,44848,18652,44849,44884,45516,18648,44869,16935,18301,13922,44855,17657,17981,36472,45043,18688,17703,44687,45517,45277,18894,44835)
Unknown column 'np.person' in 'where clause'