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 (44766,44836,18572,45072,18652,44739,17904,45561,44894,9341,18279,44873,18427,19078,18237,6875,45262,18172,17556,16935,44775,17601,44875,3,39676,44767,17237,44865,4765,36472,44689,6862,17835,45277,17703,44845,24412,18430,44858,18042,17492,44856,37057,45346,13425,44669,30986,14622,18688,18648,18719,44745,44685,43800,8753,44867,44853,44866,22509,44861,30135,14402,44849,18286,17009,44870,45051,44640,45518,44869)
Unknown column 'np.person' in 'where clause'