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 (45567,32454,19057,18286,44869,44762,18353,17904,6862,18172,17009,4686,5410,31354,45421,44894,43800,44873,17848,17092,44884,30986,5259,44669,18572,18794,45515,37267,45516,17835,44671,17703,18648,44739,18237,17527,39676,44745,18688,45180,13988,44775,14402,18652,45072,36472,44861,5388,44856,44865,44845,4765,13,34194,16935,18427,44878,16885,24441,44764,17278,45177,44851,30963,18446,45277,19078,6782,44685,44768)
Unknown column 'np.person' in 'where clause'