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 (44739,17351,18185,44764,4686,17556,17278,44855,44869,44711,44685,5410,6862,18719,44854,44835,44861,18572,6782,18688,17092,17771,17601,45072,17755,18652,44849,36472,17835,44848,17703,4765,18446,18794,44867,17492,44865,44775,14622,45229,44640,18650,24411,17009,18430,44837,44745,18172,44863,44845,18894,6609,44858,13,18301,44868,24412,44878,28313,17848,45421,44884,45180,30963,18981,45518,3883,3,8753,45515)
Unknown column 'np.person' in 'where clause'