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 (18794,37057,18427,18279,14622,32454,44674,44866,17492,14402,18572,44873,8753,45561,44867,45517,18688,44745,6875,18286,44762,45518,18981,17904,17756,44835,17601,24411,9341,30963,18652,44875,17237,44868,17835,17351,3883,18042,17755,18996,44685,6609,18185,45286,17771,5388,22509,18894,28530,17009,44870,45180,44767,44845,45421,45516,44531,44765,17848,18650,17114,45262,44894,13988,10402,44766,45177,45042,30135,24412)
Unknown column 'np.person' in 'where clause'