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 (19078,19057,18894,44878,10402,4765,44765,45518,45561,30963,6862,44856,18652,18427,44858,45346,17114,45072,3883,22509,44884,44875,18286,18237,24411,44745,17703,44894,44531,34194,9341,44867,45516,16885,17556,18042,45421,44868,44689,5410,36472,8753,16935,5993,44861,28313,17835,13922,45517,17601,44855,3,44767,17278,18572,18688,18981,45042,18794,44835,13988,18301,28530,31354,44674,6875,17848,17092,18172,24412)
Unknown column 'np.person' in 'where clause'