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 (44640,17755,34194,24438,44854,18652,16885,24441,44835,44861,44848,45421,45346,17351,44878,18894,18650,45515,44745,17278,45177,39676,17114,6609,44837,44855,44845,45229,17527,45561,45042,17657,37267,44531,44894,44685,17601,18572,18430,17904,45286,6875,44867,3883,18279,44739,44863,18996,44687,5993,45517,8753,4765,44671,17009,30986,44689,13988,44875,45518,44869,17335,44775,44884,18648,44873,44865,18981,44766,18042)
Unknown column 'np.person' in 'where clause'