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 (44745,18042,28313,44869,18446,45518,44764,17771,44689,44848,17755,28530,44739,44856,45567,8753,18794,45516,17657,6782,44767,45262,18894,45346,19057,45277,18688,18430,17335,14402,17756,45072,44861,44640,30986,44853,22509,44671,44851,44849,30963,17839,44884,6875,44762,30135,18996,24438,44870,18237,17835,43800,4765,45515,18427,44765,13425,6862,44875,45561,34194,17009,17278,18719,44685,44854,44669,18572,18652,18648)
Unknown column 'np.person' in 'where clause'