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 (45561,18301,18900,17981,45517,44762,44669,4765,18172,18446,44531,4686,18688,44671,44674,17835,18427,45515,44768,45286,44869,44685,17703,17335,31354,44867,17351,13988,13922,6609,17755,44836,45177,44884,19057,44855,45346,44767,30135,45051,44854,37057,44739,18652,44866,5993,45516,44640,16885,8753,10402,45072,24441,17839,44853,17009,24438,28313,18794,17092,44845,18042,17237,44865,18237,44873,16935,30963,18648,44765)
Unknown column 'np.person' in 'where clause'