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 (44669,17278,44867,45177,17492,19078,18981,17904,45277,45518,44687,18301,17835,45561,44835,44868,18353,18042,44766,45346,44855,16935,3,18794,30963,16885,18648,45072,44863,32454,24441,17703,44858,45051,17351,17601,5993,44689,44894,5259,44875,13,18427,44848,18719,13425,44866,44861,30986,39676,28530,44768,17848,44837,17237,36472,17527,44685,18996,17657,17335,18900,44836,44869,5410,18237,24411,44531,13988,37267)
Unknown column 'np.person' in 'where clause'