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 (17237,44868,18446,30963,45518,16935,44768,44837,6862,44855,24441,17601,45262,18652,45561,17114,44836,45043,17904,45515,3883,44711,6875,44858,44866,45177,44873,44745,30135,18572,45421,18650,17657,18279,18794,13988,44669,6782,44875,31354,8753,45567,44674,43800,45517,45516,18301,17756,18996,44640,44766,45180,9341,4765,44865,45286,5259,28530,36472,17703,44835,44767,34194,28313,44687,44671,30986,18900,45277,14402)
Unknown column 'np.person' in 'where clause'