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 (44674,6875,44869,17092,44865,44866,17527,39676,17601,37057,13922,13425,44851,17904,44873,44863,28530,45286,14622,17278,17839,4686,45421,16935,5259,6609,5388,32454,34194,17351,45043,44861,17335,30986,30135,44689,24412,13988,18688,28313,44765,19057,18894,45051,44835,45346,45515,44775,18996,22509,45516,18650,6782,44768,44845,44884,18042,44669,44855,44671,18301,18648,44739,44856,18427,17556,44767,44858,44870,17835)
Unknown column 'np.person' in 'where clause'