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 (17492,5259,44865,4765,32454,6875,44671,3,18430,44767,8753,19078,45180,44870,43800,24441,44866,44878,3883,16935,17835,37267,44855,44894,28530,18652,18894,18794,44856,30963,24411,18353,30135,5388,13,17092,45277,44835,18185,44762,45346,44863,39676,17527,45517,44853,44851,44837,22509,44845,18572,24412,17601,18648,44868,45516,44884,45177,44689,44775,18237,44640,18446,45262,17703,44848,44861,14622,24438,45561)
Unknown column 'np.person' in 'where clause'