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 (45346,44766,13922,44687,4765,24411,14402,16935,45051,18237,19057,45177,37267,18572,18650,45286,34194,44869,45072,45515,17904,22509,18042,6609,17703,44765,44856,44685,45180,17527,18900,18648,45567,4686,44863,45517,45277,9341,39676,18353,17335,36472,18279,13988,44866,44762,30135,44837,17755,45421,44845,44875,18430,19078,37057,44865,17756,44884,17556,44674,17601,13,3883,17835,3,44855,18301,44739,45262,17351)
Unknown column 'np.person' in 'where clause'