While trying to get messages by id there was an error which showed the table name was not mentioned correctly
"select messages.id as id, title from messages where id = '1' - Table 'final_project_db.messages' doesn't exist"
Correcting the table name to 'channel_messages'.
Also error showed 'unknown column title' and have corrected to return only the message and not array of messages for the specific id
While trying to get messages by id there was an error which showed the table name was not mentioned correctly "select
messages
.id
asid
,title
frommessages
whereid
= '1' - Table 'final_project_db.messages' doesn't exist" Correcting the table name to 'channel_messages'. Also error showed 'unknown column title' and have corrected to return only the message and not array of messages for the specific id