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 (18430,44865,45051,44531,30135,30963,44768,18688,44863,36472,44855,43800,16935,24411,17335,18981,45517,44766,45262,44866,6782,44868,45346,14622,16885,14402,28530,5259,8753,44671,18172,18353,44689,17009,17556,45277,6862,44640,44685,24441,17351,34194,24412,44858,44854,44711,45043,4686,44845,45515,44775,44745,18650,44867,18237,18286,37057,44884,3,18446,6875,18894,17237,5410,18900,44687,17657,18652,44870,44861)
Unknown column 'np.person' in 'where clause'