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 (45515,18430,45051,18353,18301,44865,44531,44870,13922,18650,18572,18981,44849,18688,37057,44764,17657,5259,45262,5410,44669,44766,45567,31354,18719,18894,44689,43800,44854,17755,45072,44855,13425,44868,17237,24441,18900,44836,18427,44878,36472,17492,16885,17278,44845,45516,37267,44640,44762,18279,5993,17835,19057,44884,28530,3883,18996,17556,18794,44856,18652,45180,44768,9341,45518,3,17904,44875,44835,18286)
Unknown column 'np.person' in 'where clause'