Closed czewail closed 3 years ago
select id, (MATCH(tags) AGAINST ('word')) as score from photos where MATCH(tags) AGAINST ('word') order by score desc limit 9
throws Error: ER_BAD_FIELD_ERROR: Unknown column 'score' in 'order clause'
Error: ER_BAD_FIELD_ERROR: Unknown column 'score' in 'order clause'
but works with mysql client:
can you show whats in the fields response for select * from photos query? as in connection.query(select * from photos, (err, rows, fields) => console.log(fields))
select * from photos
connection.query(
, (err, rows, fields) => console.log(fields))
throws
Error: ER_BAD_FIELD_ERROR: Unknown column 'score' in 'order clause'
but works with mysql client: