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 (44531,44875,18648,6609,44873,18172,8753,44762,44745,17114,18237,44869,30135,45229,44856,34194,5259,44766,17848,44861,45286,45042,44854,22509,44855,44848,44851,45516,37057,44835,44863,3,5388,19057,44878,18301,39676,44867,44775,44671,16885,43800,45072,45051,17839,44767,18719,17527,24412,30963,44849,17335,45262,6782,44837,28313,45518,10402,28530,44866,18353,17278,14402,31354,18279,44845,13922,13425,44764,45043)
Unknown column 'np.person' in 'where clause'