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 (8753,6875,4765,36472,17092,44687,45177,44671,18446,44765,44762,44837,17492,17601,18172,45229,44711,18900,44869,18572,17335,45072,30986,44689,17351,44849,44870,44873,45561,37267,17835,24441,45051,13425,28530,45286,44845,3,18353,17556,3883,44854,17237,14622,44855,44865,5388,44531,44836,34194,22509,44739,19057,44868,45277,17703,17981,17527,37057,44640,44674,44768,9341,6782,45421,18042,19078,18185,44851,16885)
Unknown column 'np.person' in 'where clause'