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 (28530,45516,18996,14622,13425,44875,44685,17657,44837,45051,18237,17237,17492,43800,18427,5993,14402,5259,8753,44848,17848,17835,17601,18353,44851,32454,18301,18652,44894,9341,3883,44765,45177,17092,10402,44674,44689,5410,22509,44854,6875,30135,17009,44849,34194,44835,17556,44878,17278,17703,44671,44764,45346,44531,13,18286,44739,37267,45229,44711,17527,45262,44836,24412,3,24411,44867,19057,39676,13922)
Unknown column 'np.person' in 'where clause'