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 (18237,17492,24438,18652,6609,44837,24441,24411,14622,44868,6782,44851,14402,44848,18286,9341,13922,44865,45277,44768,36472,17278,3883,44775,17771,34194,17657,28313,39676,45051,44863,10402,44870,17848,6875,44849,17703,18042,37267,45515,5388,45567,17839,18172,44866,18430,17835,17092,44884,31354,44674,44845,44856,44855,17904,44853,45421,44685,4765,44669,5993,13,30963,18794,45561,44873,18981,44671,17601,17527)
Unknown column 'np.person' in 'where clause'