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 (28313,4686,44767,18650,24438,18042,44869,44849,37267,43800,44687,18237,14622,18652,10402,8753,44762,44868,45421,17278,18894,14402,44845,17771,44865,45262,9341,17601,18981,18719,18185,45072,44764,17904,45516,24411,6609,45346,18688,17114,44853,3,17527,44858,18301,44739,45561,44674,44894,17756,44836,44851,36472,17657,44640,44711,44854,18427,30135,4765,18279,18430,44775,5993,44848,39676,45277,17492,44861,22509)
Unknown column 'np.person' in 'where clause'