Firstly, welcome to the forum. However, could you please read up on how to include code in a post? Thanks, it makes things much easier to read.
Now to your problem. The flow you've shown doesn't quite do what you think. Those separate change nodes all need to be in a single node because the result of your current flow is that you are sending 4 separate messages to the function node with each message only containing a single value not all of them as you are assuming.
A couple of other points. You can use back-tick quotes in your insert to make things rather easier to read:
insert = `INSERT INTO readingsreceived(ssid,rssi,scan_mac,sensor_mac) VALUES("${ssid}", "${rssi}", "${scan_mac}", "${sensor_mac}")`
Secondly, it is wise to use a "prepared statement" rather than a manually constructed insert statement. Those are more efficient but more importantly, they are less susceptible to SQL attacks.
Hi, thank you for the prompt response, sorry about the delay to reply. So as you suggested I started with bringing all four change node values to one node, But I am getting an error.
Hey Steve, your solution worked , thank you very much. For my knowledge please elaborate what was actually happening to the values , as in why were they not going to the database.