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 (17351,44875,44848,18996,3883,44867,44868,44674,30963,45286,18794,17771,44854,45229,31354,14622,17556,6782,45518,4686,6609,22509,43800,4765,39676,30986,45277,44768,44861,18301,18894,24411,45180,17848,45421,18185,44869,5993,44835,17237,18430,5259,17278,13988,6862,10402,44873,28313,19078,44858,17835,3,44845,17114,18688,44865,24438,16935,44739,44837,18172,16885,18652,17756,45567,44855,18648,34194,44894,44689)
Unknown column 'np.person' in 'where clause'