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 (44745,19057,44836,44767,44863,18430,18185,4686,44869,5259,45346,45262,17601,13,28313,17657,45517,30986,36472,44855,3,44878,45072,18794,18301,44640,44768,17556,14402,37267,24438,45567,13922,18688,45043,16935,44884,44856,17703,34194,17009,44848,44865,4765,18652,44762,44669,45042,14622,17839,45421,45229,44858,44845,5410,44671,3883,17092,18427,44689,17278,17981,30135,44854,9341,17237,5388,17904,17771,18286)
Unknown column 'np.person' in 'where clause'