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 (44858,17756,44685,18894,17835,32454,45262,45043,18652,44669,17839,14402,17114,17351,44836,44851,18572,6609,44671,44875,24438,45277,37057,5993,5259,18688,30135,17601,22509,18719,44765,5410,3883,9341,44854,44745,45229,45072,44531,44867,18353,8753,17492,24411,18237,10402,44687,16935,13922,43800,44766,18794,6875,17556,17771,44878,17981,18430,44767,17092,6782,14622,44894,18900,45177,45421,44640,44762,30986,44869)
Unknown column 'np.person' in 'where clause'