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 (17981,45421,5993,18996,17835,44868,18719,18172,18353,22509,17601,18446,17092,13988,45177,13,44858,5259,45518,17771,44894,6862,44863,13922,44837,18279,44766,16885,44765,44669,44849,45517,18794,5410,17839,44711,44775,18981,44869,24441,18301,34194,45567,18652,44685,44861,30963,30986,17556,44875,18237,8753,9341,24438,17278,3,45229,17114,17237,45180,44640,4686,44855,18650,44836,28530,14402,44687,45286,17351)
Unknown column 'np.person' in 'where clause'