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 (44687,9341,6875,19057,44835,44866,45051,44873,45567,17848,6862,28313,3883,44878,18650,44674,17601,17756,24441,44863,13,44762,18185,17237,30986,44531,44849,45346,44766,45286,13988,44854,30135,17835,17527,44837,16935,28530,44765,13922,45229,18652,44884,4686,43800,44739,45177,5259,18648,45072,44764,5388,45277,44711,44851,6609,17771,22509,17839,44855,17114,36472,18301,18353,44869,44894,14622,45262,44870,44775)
Unknown column 'np.person' in 'where clause'