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 (45229,17835,17114,18286,37057,17981,45277,44884,30986,44861,18650,45561,9341,44853,28313,18237,44845,44766,17092,18719,44768,44865,24412,8753,44873,45072,5388,44689,6609,18894,44775,3883,18042,16885,14622,17237,13,44836,4765,17848,30963,14402,17755,45518,45180,4686,43800,32454,28530,45421,44878,44764,17492,18427,17904,44762,18353,44837,44869,45516,3,39676,18572,18996,44745,44854,30135,44868,18794,44640)
Unknown column 'np.person' in 'where clause'