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 (28313,45229,44884,3,44845,24412,44856,8753,44878,6862,22509,18446,45072,18648,44869,44851,43800,19078,44762,45567,18719,44767,45561,44849,18353,37267,45421,18172,44531,18286,44873,44766,17839,18237,34194,37057,13988,45043,5388,45177,44745,18981,18301,45518,17492,44863,5993,18996,24438,13,10402,17527,44854,17009,44865,5410,17755,30135,44870,44640,45515,44671,44867,24441,18650,5259,44674,17756,17237,17351)
Unknown column 'np.person' in 'where clause'