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 (45516,17114,5993,13988,8753,44845,45180,45518,45515,17492,45262,18042,44766,24411,17703,44851,17527,18279,44687,28313,39676,44689,17278,30986,14402,28530,44863,18996,45043,6782,3883,18286,3,4686,17601,17755,17351,44775,44873,31354,17237,44745,5388,37057,5259,13,45072,18572,44868,45229,44836,13425,18353,45051,44875,44867,22509,34194,44768,44855,18172,19078,44640,44856,44671,18446,45346,16885,44870,6875)
Unknown column 'np.person' in 'where clause'