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 (18427,45515,30986,44837,44711,18301,17835,24412,18996,43800,34194,13,18794,18572,45286,18648,45516,18279,13922,45421,19078,17839,17981,17771,19057,4765,3,14402,45180,17351,18172,44766,18719,18688,18894,45277,44762,45072,44835,18446,17527,18042,44870,44866,44845,18353,17601,24411,44669,45262,39676,17492,44531,37267,45051,17237,37057,44640,44875,17703,45177,6782,13425,17657,44873,24438,17009,44861,45561,44764)
Unknown column 'np.person' in 'where clause'