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 (5388,18900,45346,45229,18279,13425,6862,5993,44845,44878,18172,45072,45277,44835,45517,18652,17657,45262,13922,30986,18286,44531,24438,17527,44766,14622,17835,44861,45042,34194,18353,24441,44873,37267,6782,3883,44765,45567,44855,44711,44685,45561,17771,18446,18894,45177,44837,19057,17278,13,17839,24412,44775,6609,45421,18301,17351,44689,44849,17114,17756,17492,43800,45516,44866,44863,44870,17009,44669,17848)
Unknown column 'np.person' in 'where clause'