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,44845,45229,44836,18042,19057,18648,44884,17835,18427,43800,17335,17556,44869,37267,17657,13922,44762,24412,44853,6862,44868,32454,44669,16885,6609,4765,44875,3883,18652,44767,13,45346,44873,14622,5993,17492,44878,30986,17237,17114,44775,45042,17092,18353,24411,34194,9341,45421,44835,44894,45517,17981,44855,45561,14402,13425,45567,44674,17756,22509,17009,44837,17601,8753,18900,45277,44765,44861,18688)
Unknown column 'np.person' in 'where clause'