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 (24441,44894,44863,30986,44866,3883,17092,44671,44855,18237,13,17756,32454,44870,24411,43800,44849,44853,18172,17848,18427,44531,44687,17835,37267,18719,44685,6862,18286,39676,45277,17278,5259,31354,37057,44768,18042,45051,44854,44878,28530,30135,44875,17771,44766,18996,17237,18894,17657,44674,17703,5388,17009,45177,18652,28313,17492,17601,44745,19057,44884,14622,45518,44835,6609,9341,18572,8753,24438,17335)
Unknown column 'np.person' in 'where clause'