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 (24412,16885,6875,17657,44766,44853,44867,44762,17835,45517,17009,5993,44884,44848,17703,6609,18981,13,44858,6862,18572,17335,30963,18172,44851,44669,44845,44855,30986,18650,18652,44866,36472,18894,37267,22509,18900,43800,5388,44875,44894,44765,45051,18648,44863,17756,3883,4686,45421,44835,9341,17771,17351,30135,18185,44739,45277,17556,16935,28313,44685,17601,17492,44869,44865,44768,44764,24438,28530,17527)
Unknown column 'np.person' in 'where clause'