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 (39676,45517,18279,18185,18430,37057,45561,45286,44861,37267,44768,17351,17771,6862,18719,17092,44766,18427,24412,44845,44762,44739,44854,18648,44858,22509,8753,5410,18042,17904,44863,44894,30986,3883,16935,17335,30135,13988,30963,18981,44836,45518,4686,43800,17114,14402,6609,24441,6875,45421,44671,5259,19057,44853,18652,44775,17835,31354,17848,17601,36472,17492,44640,44674,17278,45567,4765,18353,18301,18900)
Unknown column 'np.person' in 'where clause'