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 (44856,19078,6875,5410,3883,44837,19057,44849,32454,45561,17835,6609,28313,44875,44689,14622,44868,44866,45516,44884,17848,18185,17755,17527,30986,34194,18572,45051,3,44674,45277,18042,13988,22509,16935,45262,44671,4765,45518,5259,44669,24441,30963,18353,18237,31354,16885,45346,45072,36472,44873,44762,44766,45515,45042,44687,17009,44870,44854,44835,44845,18172,4686,45177,14402,44640,44745,37057,17657,44711)
Unknown column 'np.person' in 'where clause'