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 (6782,5410,18652,45561,13922,17009,18185,44689,44894,17492,18719,44855,3,17601,44875,4765,18650,44835,44866,30986,13,18996,22509,44851,44861,44863,24441,44853,45042,44640,18237,17114,45286,18446,44767,39676,31354,18279,44762,45229,5993,17904,45567,17351,44775,18572,6862,45421,44766,44865,24412,44854,18427,45262,45072,17527,9341,44845,18042,18353,44687,44856,44878,45515,17703,45346,18894,17278,19057,44849)
Unknown column 'np.person' in 'where clause'