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 (28530,45346,44775,18427,44835,24411,6875,44868,18996,44861,13425,45051,36472,44687,44865,18688,44870,45516,18650,22509,17981,44866,45517,17335,24441,19078,5259,17771,45421,37267,14402,14622,44848,28313,18572,44845,17351,44851,3883,17755,9341,13,44766,17657,44836,17703,5410,44837,4686,45042,16885,18042,44867,19057,3,6862,44894,17556,45518,39676,30135,44711,44685,18353,5993,45277,18172,44762,31354,45561)
Unknown column 'np.person' in 'where clause'