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 (45286,45180,17601,44669,44858,44835,16885,44745,17703,44866,44766,18430,45421,17278,32454,17848,13,44869,44674,44845,44762,30135,45517,24411,45516,3,44865,44863,44767,45561,17351,34194,18794,24438,18279,44875,24441,31354,5259,19078,6875,18572,45262,18996,9341,37057,17771,44867,45072,14402,44671,36472,44853,44531,17335,8753,13922,18237,44878,22509,44894,44868,30963,4686,5388,44837,18652,17009,44640,17981)
Unknown column 'np.person' in 'where clause'