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 (45072,17657,17527,44745,13,45516,14622,5259,44640,37057,18719,44848,9341,45180,44873,16935,45421,22509,18648,18301,17492,17601,24441,17839,44867,6862,17009,44531,5993,31354,4686,18572,18894,44858,44861,32454,44762,45517,44866,45515,4765,44849,44739,5410,17835,17278,45567,45177,39676,18172,44767,44869,17981,17237,44853,17703,45518,30135,18286,28530,45346,17771,6609,17335,18353,14402,44878,45051,44766,44894)
Unknown column 'np.person' in 'where clause'