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 (45177,18427,44855,13988,44865,10402,5993,44867,44848,44739,17771,30135,18301,45262,17278,17848,18996,44878,5259,13922,17703,44854,18900,44866,3883,17237,34194,18237,44765,17114,44851,45517,24438,5388,17835,45043,24441,45072,4686,44640,13,17601,44863,18353,18648,45567,18430,44767,44894,37057,45561,45277,45286,30986,18650,17492,5410,45515,17527,44873,44869,44689,4765,6782,9341,45518,44858,44531,44845,44861)
Unknown column 'np.person' in 'where clause'