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 (24438,45286,32454,13425,44861,17657,17009,17335,16885,3883,18427,19057,44849,18572,3,44863,44674,18301,44845,44858,44853,44870,37057,45516,44687,14402,44531,45518,17092,44869,30135,13988,44873,44837,44640,44766,45421,18650,18981,45177,14622,44851,18794,39676,18648,5388,18279,44878,24412,17839,4765,18172,45262,18996,18688,18353,44768,44765,6782,28313,19078,45229,18237,18900,44848,16935,17556,44689,44865,18185)
Unknown column 'np.person' in 'where clause'