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 (17492,44873,30963,44711,5388,18237,17657,44848,44863,44868,45421,45346,17848,17237,17981,45515,44689,44764,17278,24438,8753,37267,45072,44745,45229,17601,17755,28313,30135,18981,5259,4765,45043,13,45517,17703,39676,24441,22509,32454,44861,44687,44878,31354,18301,44768,6782,44865,44775,18353,44866,45051,9341,6875,17835,18719,18279,18042,44837,18652,28530,18794,44855,44894,18286,13988,17335,44640,44669,17839)
Unknown column 'np.person' in 'where clause'