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 (44837,45518,13922,18900,18430,17839,17556,45042,18650,17771,6875,45177,44873,45515,17492,18719,44765,44745,43800,5993,44848,44768,17237,5259,44836,44870,17835,19078,44855,44767,18652,44762,37057,18996,34194,45229,18688,44687,17114,18237,45072,17092,44671,3,44865,45517,16935,24438,44849,44875,45421,44775,32454,17335,24441,45567,22509,18042,44685,17009,8753,17848,44868,17278,45561,4686,4765,18279,44856,44867)
Unknown column 'np.person' in 'where clause'