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 (44867,44689,44853,17756,19057,44849,18172,6862,5410,6875,24412,44869,16935,44674,30135,39676,17657,31354,16885,18900,18446,45042,45180,30963,22509,17904,17601,13922,44845,17114,44856,44868,17771,44873,45262,18042,44866,44884,44875,44711,17092,3,44739,18652,17755,44855,45346,44745,18279,45518,13425,17278,30986,45515,5388,44762,44687,17703,44766,44767,18301,37057,14402,24441,44671,3883,28530,45277,18286,9341)
Unknown column 'np.person' in 'where clause'