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 (24441,37267,6782,18427,45177,44762,44531,17657,44869,44858,5410,10402,28530,17114,36472,18430,18286,44863,24411,44870,17835,45421,9341,17092,17278,18900,8753,30135,5388,17351,17848,45229,44767,17601,44878,44865,18172,24438,37057,14402,18688,44849,45515,16935,45277,6609,18042,4686,22509,45518,28313,19078,44854,13988,24412,44853,45286,18996,6875,44873,44894,44775,18719,5993,44768,44837,44867,44674,18301,44766)
Unknown column 'np.person' in 'where clause'