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 (18648,18650,44764,24411,3,16885,13425,45177,18185,18719,44863,18981,17657,37267,44671,32454,24412,44689,45421,44878,37057,45518,44685,3883,6862,17601,17335,44849,22509,10402,18172,44531,45517,18894,17278,18996,44853,5410,45346,45277,44861,44858,8753,45567,18301,30135,44767,44837,34194,18446,44848,6609,18353,44765,13988,17981,17527,30963,45042,44869,16935,30986,45043,44836,44870,28530,9341,18042,44739,44775)
Unknown column 'np.person' in 'where clause'