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 (5993,18430,19078,45277,17848,18301,44765,24441,18794,17703,45516,45043,17492,44856,8753,18286,44848,44869,18446,17755,44762,17335,45421,45042,18427,44875,24412,44855,18172,10402,45229,39676,44851,45567,18650,44835,37057,28313,44878,30135,44687,45262,37267,17114,6609,17756,17351,44865,44689,44836,18185,13988,4686,44863,45561,13922,16935,17092,9341,4765,44671,18688,44854,44745,3883,6862,44711,45515,5259,44870)
Unknown column 'np.person' in 'where clause'