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 (44685,17904,44868,44856,13922,45072,3883,3,17657,18446,22509,45515,10402,45516,45043,45346,18430,5993,44837,44762,44671,45229,44689,44766,13988,45042,44861,44845,17756,28313,17839,44863,18572,44858,17278,30135,17755,44669,30986,14402,45177,14622,44745,44869,44875,18650,44878,44894,17009,18237,18185,34194,17527,17703,45518,18900,13,6609,4686,24441,5410,18172,44873,24438,44836,16935,18719,32454,18042,43800)
Unknown column 'np.person' in 'where clause'