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 (5410,18996,44848,44837,13922,18652,44739,17092,6609,17848,44867,31354,45518,30135,18279,36472,24441,44855,32454,17278,18286,45286,6875,17351,43800,44766,17657,45177,18427,44764,44685,10402,30963,44674,45346,13,5259,3883,44775,45567,45051,13425,14402,3,37057,6782,37267,18301,44849,17335,34194,44869,18794,16935,22509,4765,19057,44863,45180,18894,18042,45262,9341,44878,18648,18719,5388,45517,30986,45072)
Unknown column 'np.person' in 'where clause'