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 (17278,24438,17839,17755,18172,17351,17092,44873,36472,44739,44762,45051,45042,45518,19078,45516,44849,18894,17756,6782,44878,18981,18286,44685,5410,18719,44745,45229,24411,44869,44671,22509,45421,17009,8753,34194,18794,45277,17601,6609,17492,17335,44867,45043,28530,17237,6875,17556,44836,18996,17527,9341,30963,18430,3883,3,44845,16935,44837,5259,19057,44870,44689,44687,44894,30135,18185,13425,44858,45286)
Unknown column 'np.person' in 'where clause'