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 (18652,44856,6862,17237,16935,17278,45277,14402,44849,18430,44865,24411,45286,34194,44768,18172,17351,44858,18981,44869,44674,17335,9341,6875,44873,17657,44766,17848,5259,44845,4686,17703,45262,44671,18042,37057,18301,44689,17601,5388,45229,44531,10402,44739,24438,18353,4765,17556,19057,18286,44867,44875,44764,44685,13,44640,16885,8753,6609,18650,44711,44837,31354,44745,45051,45421,17755,18446,36472,45518)
Unknown column 'np.person' in 'where clause'