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 (44762,44865,18446,14622,44764,44873,24441,44836,30135,17556,44875,44855,3883,44711,17335,44854,45277,24438,45421,18279,9341,17756,17839,44853,44765,37267,17492,44867,44868,18353,18301,44848,45518,17848,39676,17601,44858,13,44849,18719,5993,4765,17771,17755,45043,44671,5410,44689,45517,18648,44869,44835,18185,18430,32454,18794,22509,24411,44775,17527,5388,24412,17703,44884,5259,44687,13425,45051,45229,44863)
Unknown column 'np.person' in 'where clause'