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 (34194,31354,44685,18794,17771,44884,3,44870,44845,17755,44878,14622,24438,28530,18688,45262,17527,44674,17335,24411,44767,45229,19057,18446,44711,45346,17835,18648,18172,17492,45421,18652,17351,44775,18042,44867,44766,44745,44858,18427,6862,45567,9341,44848,22509,44687,44671,45561,44836,44849,17839,37057,44863,17114,17601,18353,17703,45277,18430,45043,44853,44855,30963,18719,44669,30135,16935,44866,16885,24441)
Unknown column 'np.person' in 'where clause'