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 (44767,45517,44884,44851,44837,14402,44855,44674,30135,32454,44873,18894,30963,45286,45567,17527,17755,44894,30986,4686,44531,44765,9341,44848,45421,18650,18648,13425,44861,17904,45518,18996,45346,16935,5259,36472,44745,18279,44867,13922,5410,17237,44836,18353,18900,17092,24411,44762,17835,4765,44849,44875,44863,44865,44854,6862,44669,18237,39676,44711,45515,17114,17556,37057,17657,44868,19057,44689,6782,44768)
Unknown column 'np.person' in 'where clause'