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 (44869,18172,44868,44867,37267,44674,43800,44685,16885,44739,8753,44766,17771,10402,45517,44884,44687,44671,44836,45277,17335,17755,24411,28313,44837,45043,44745,44835,28530,30135,39676,19078,44878,18996,18894,18279,18688,17601,44775,17492,18900,24412,6875,17703,44894,45561,37057,6862,45346,17839,19057,18237,17114,44861,44856,44863,18042,44768,5993,9341,45567,45072,44531,44765,44875,44853,18572,17904,34194,44851)
Unknown column 'np.person' in 'where clause'