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 (44858,44867,44848,17237,18719,17492,44531,16935,4765,44853,13,13425,28530,44894,18648,17527,45177,5993,45286,19078,44855,44863,18794,10402,43800,44870,44875,45277,18981,45567,45518,14402,45421,3,31354,44835,44768,16885,44837,44640,24411,17009,18301,17835,34194,44869,44745,17278,8753,44766,14622,5259,44765,44739,24438,18688,32454,39676,18900,36472,44873,44775,6609,44764,18042,37267,30963,44878,45346,44866)
Unknown column 'np.person' in 'where clause'