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 (10402,18652,18446,44853,18430,17904,18042,17237,44866,44764,17601,4686,18572,18981,13,44775,45177,44687,45180,44836,24412,44848,44858,44867,6782,9341,44894,44851,17009,45072,18279,44878,4765,16935,43800,44835,18894,17839,5993,37057,24438,28530,6862,18237,34194,44863,13988,18286,17335,30135,44671,18650,45051,18688,44861,18301,16885,44685,6875,45277,44745,44640,44884,44767,45043,44739,44869,17114,32454,8753)
Unknown column 'np.person' in 'where clause'