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 (30135,44775,44865,32454,18353,44836,4686,31354,37057,18688,18279,44674,44765,24438,13922,18900,6609,44689,44640,22509,13,45286,44835,14402,17278,34194,45177,17114,44687,18172,45229,28530,24412,24411,13988,30986,44711,44685,18894,18652,45516,45043,44837,8753,6862,44766,18446,45421,18427,3883,45518,17492,37267,17009,17755,18719,18286,17657,19078,44764,44867,17839,44767,44868,44858,17703,45262,45042,44671,45561)
Unknown column 'np.person' in 'where clause'