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 (18650,24438,18648,18688,45346,32454,44836,44687,18172,17335,18572,34194,44855,17756,6609,45421,17492,44669,45517,30135,17771,44858,44775,6782,18446,45042,17114,22509,18301,5259,13922,44768,18185,44849,45051,18719,44870,44875,13988,44689,18900,13,44671,24411,45286,18794,44861,44894,44878,17092,16885,17009,10402,30963,44851,37057,17351,44865,17556,45277,14402,17237,17527,44765,45518,4765,44863,18286,9341,6862)
Unknown column 'np.person' in 'where clause'