i am using laravel for my project. i performed a query. it works fine in localhost. but started giving this error after i have uploaded it on the server. here is my query below
$result = Card::SELECT('id','name','unique_id','nid','geo_union_id','house_category','house_name','vata_list','mobile','profession','family_members')
->whereraw("JSON_CONTAINS(vata_list,'[$request->id]')")
->where('geo_union_id','=',$union)
->get();
and this is the error i am having in live server
Syntax error or access violation: 1305 FUNCTION mydb.JSON_CONTAINS does not exist