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 (6782,44867,44849,17556,44837,30963,18900,36472,17092,45042,18427,44640,44671,44855,45567,18572,44669,18430,6875,17492,17351,3883,44894,13922,44875,44858,17237,45262,18794,13,44739,45516,17904,3,6862,17835,44873,31354,5993,17527,6609,30135,43800,44848,18446,39676,18981,44884,44863,18042,32454,18688,5410,45421,44762,18650,18172,45518,17009,44765,24441,44869,16935,44853,45561,44767,18353,45515,18996,34194)
Unknown column 'np.person' in 'where clause'