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 (17237,17601,44837,44745,44674,44764,17351,3883,16885,18430,44894,18572,17009,45072,44855,44854,44669,28530,24411,17755,44765,5259,44853,45180,17278,5410,44867,17114,44767,18427,3,36472,14402,18042,44848,18794,17839,45229,44640,6782,22509,18446,18650,18719,44845,19078,4686,5388,44531,44762,9341,32454,45516,18981,43800,45177,34194,44687,24441,30135,37267,44711,4765,44869,44873,18286,18688,37057,5993,44870)
Unknown column 'np.person' in 'where clause'